-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
… (#115589) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
- Loading branch information
1 parent
dadc768
commit 2763f38
Showing
5 changed files
with
96 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.. highlight:: c | ||
|
||
PyHash API | ||
---------- | ||
|
||
See also the :c:member:`PyTypeObject.tp_hash` member. | ||
|
||
.. c:type:: Py_hash_t | ||
Hash value type: signed integer. | ||
|
||
.. versionadded:: 3.2 | ||
|
||
.. c:type:: Py_uhash_t | ||
Hash value type: unsigned integer. | ||
|
||
.. versionadded:: 3.2 | ||
|
||
|
||
.. c:type:: PyHash_FuncDef | ||
Hash function definition used by :c:func:`PyHash_GetFuncDef`. | ||
|
||
.. c::member:: Py_hash_t (*const hash)(const void *, Py_ssize_t) | ||
Hash function. | ||
|
||
.. c:member:: const char *name | ||
Hash function name (UTF-8 encoded string). | ||
|
||
.. c:member:: const int hash_bits | ||
Internal size of the hash value in bits. | ||
|
||
.. c:member:: const int seed_bits | ||
Size of seed input in bits. | ||
|
||
.. versionadded:: 3.4 | ||
|
||
|
||
.. c:function:: PyHash_FuncDef* PyHash_GetFuncDef(void) | ||
Get the hash function definition. | ||
.. seealso:: | ||
:pep:`456` "Secure and interchangeable hash algorithm". | ||
.. versionadded:: 3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters