sys.hash_info

sys.hash_info

A struct sequence giving parameters of the numeric hash implementation. For more details about hashing of numeric types, see Hashing of numeric types.

attribute explanation
width width in bits used for hash values
modulus prime modulus P used for numeric hash scheme
inf hash value returned for a positive infinity
nan hash value returned for a nan
imag multiplier used for the imaginary part of a complex number
algorithm name of the algorithm for hashing of str, bytes, and memoryview
hash_bits internal output size of the hash algorithm
seed_bits size of the seed key of the hash algorithm

New in version 3.2.

Changed in version 3.4: Added algorithm, hash_bits and seed_bits

doc_python
2016-10-07 17:43:53
Comments
Leave a Comment

Please login to continue.