8000 Document Py_hash_t and Py_uhash_t types · python/cpython@b3697b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit b3697b6

Browse files
committed
Document Py_hash_t and Py_uhash_t types
1 parent 3b6ab5f commit b3697b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Doc/c-api/hash.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,22 @@ PyHash API
55

66
See also the :c:member:`PyTypeObject.tp_hash` member.
77

8+
.. c:type:: Py_hash_t
9+
10+
Hash value type: signed integer.
11+
12+
.. versionadded:: 3.2
13+
14+
.. c:type:: Py_uhash_t
15+
16+
Hash value type: unsigned integer.
17+
18+
.. versionadded:: 3.2
19+
820
.. c:function:: Py_hash_t PyHash_Double(double value)
921
1022
Hash a C double number.
1123
1224
Return ``-1`` if *value* is not-a-number (NaN).
25+
26+
.. versionadded:: 3.13

0 commit comments

Comments
 (0)
0