PyHash API

See also thePyTypeObject.tp_hash member.

typePy_hash_t

Hash value type: signed integer.

New in version 3.2.

typePy_uhash_t

Hash value type: unsigned integer.

New in version 3.2.

typePyHash_FuncDef

Hash function definition used byPyHash_GetFuncDef().

constchar*name

Hash function name (UTF-8 encoded string).

constinthash_bits

Internal size of the hash value in bits.

constintseed_bits

Size of seed input in bits.

New in version 3.4.

PyHash_FuncDef*PyHash_GetFuncDef(void)

Get the hash function definition.

See also

PEP 456 “Secure and interchangeable hash algorithm”.

New in version 3.4.