See also the PyTypeObject.tp_hash
member and Hashing of numeric types.
Hash value type: signed integer.
Added in version 3.2.
Hash value type: unsigned integer.
Added in version 3.2.
The Mersenne prime P = 2**n -1
, used for numeric hash scheme.
Added in version 3.13.
The exponent n
of P
in PyHASH_MODULUS
.
Added in version 3.13.
Prime multiplier used in string and various other hashes.
Added in version 3.13.
The hash value returned for a positive infinity.
Added in version 3.13.
The multiplier used for the imaginary part of a complex number.
Added in version 3.13.
Hash function definition used by PyHash_GetFuncDef()
.
Hash function name (UTF-8 encoded string).
Internal size of the hash value in bits.
Size of seed input in bits.
Added in version 3.4.
Get the hash function definition.
See also
PEP 456 âSecure and interchangeable hash algorithmâ.
Added in version 3.4.
Hash a pointer value: process the pointer value as an integer (cast it to uintptr_t
internally). The pointer is not dereferenced.
The function cannot fail: it cannot return -1
.
Added in version 3.13.
Generic hashing function that is meant to be put into a type objectâs tp_hash
slot. Its result only depends on the objectâs identity.
CPython implementation detail: In CPython, it is equivalent to Py_HashPointer()
.
Added in version 3.13.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4