File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -723,7 +723,8 @@ made available to Python as the :attr:`modulus` attribute of
723
723
.. impl-detail ::
724
724
725
725
Currently, the prime used is ``P = 2**31 - 1 `` on machines with 32-bit C
726
- longs and ``P = 2**61 - 1 `` on machines with 64-bit C longs.
726
+ longs and ``P = 2**61 - 1 `` on machines with 64-bit C longs. The exponent
727
+ of this Mersenne prime is available as ``_PyHASH_BITS `` macro.
727
728
728
729
Here are the rules in detail:
729
730
Original file line number Diff line number Diff line change @@ -1022,19 +1022,22 @@ always available.
1022
1022
1023
1023
.. attribute :: hash_info.modulus
1024
1024
1025
- The prime modulus P used for numeric hash scheme
1025
+ The prime modulus P used for numeric hash scheme. Available also as
1026
+ ``_PyHASH_MODULUS `` macro.
1026
1027
1027
1028
.. attribute :: hash_info.inf
1028
1029
1029
- The hash value returned for a positive infinity
1030
+ The hash value returned for a positive infinity. Available also as
1031
+ ``_PyHASH_INF `` macro.
1030
1032
1031
1033
.. attribute :: hash_info.nan
1032
1034
1033
1035
(This attribute is no longer used)
1034
1036
1035
1037
.. attribute :: hash_info.imag
1036
1038
1037
- The multiplier used for the imaginary part of a complex number
1039
+ The multiplier used for the imaginary part of a complex number.
1040
+ Available also as ``_PyHASH_IMAG `` macro.
1038
1041
1039
1042
.. attribute :: hash_info.algorithm
1040
1043
You can’t perform that action at this time.
0 commit comments