PyDocs

Nav

Python Runtime Services

hash_info

sys

data · Added in 3.2
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

s

seed_bits
seed size of hash algorithm

w

width
width of the type used for hashing, in bits
0 Examples
No examples for sys/hash_info.
See Also
No see-alsos for sys/hash_info
0 Notes
No notes for hash_info