Staging: this is not the live site, pydocs.org.
A named tuple giving parameters of the numeric hash implementation. For more details about hashing of numeric types, see Hashing of numeric types.
Changed in 3.4
- 3.4: Added algorithm, hash_bits, seed_bits, and cutoff.
Members of hash_info
a
- algorithm
- name of the algorithm for hashing of str, bytes and memoryviews
c
- cutoff
- small string optimization cutoff
h
- hash_bits
- internal output size of hash algorithm
i
- imag
- multiplier used for the imaginary part of a complex number
- inf
- value to be used for hash of a positive infinity
m
- modulus
- prime number giving the modulus on which the hash function is based
n
- nan
- value to be used for hash of a nan
w
- width
- width of the type used for hashing, in bits