Skip to content

Commit 462c5e8

Browse files
committed
Enhance the doc
1 parent c0356a2 commit 462c5e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/hash.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ See also the :c:member:`PyTypeObject.tp_hash` member.
5353
5454
.. c:function:: Py_hash_t Py_HashPointer(const void *ptr)
5555
56-
Hash a pointer.
56+
Hash a pointer value: process the pointer value as an integer (cast it to
57+
``uintptr_t`` internally). The pointer is not dereferenced.
5758
5859
The function cannot fail: it cannot return ``-1``.
5960

0 commit comments

Comments
 (0)