Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Mention public macros in docs"
This reverts commit 2c6002f.
  • Loading branch information
skirpichev committed Oct 30, 2023
commit 5c42caedfdd5255454f1c8734af6a34af42b9438
3 changes: 1 addition & 2 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,7 @@ made available to Python as the :attr:`modulus` attribute of
.. impl-detail::

Currently, the prime used is ``P = 2**31 - 1`` on machines with 32-bit C
longs and ``P = 2**61 - 1`` on machines with 64-bit C longs. The exponent
of this Mersenne prime is available as ``_PyHASH_BITS`` macro.
longs and ``P = 2**61 - 1`` on machines with 64-bit C longs.

Here are the rules in detail:

Expand Down
9 changes: 3 additions & 6 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1022,22 +1022,19 @@ always available.

.. attribute:: hash_info.modulus

The prime modulus P used for numeric hash scheme. Available also as
``_PyHASH_MODULUS`` macro.
The prime modulus P used for numeric hash scheme

.. attribute:: hash_info.inf

The hash value returned for a positive infinity. Available also as
``_PyHASH_INF`` macro.
The hash value returned for a positive infinity

.. attribute:: hash_info.nan

(This attribute is no longer used)

.. attribute:: hash_info.imag

The multiplier used for the imaginary part of a complex number.
Available also as ``_PyHASH_IMAG`` macro.
The multiplier used for the imaginary part of a complex number

.. attribute:: hash_info.algorithm

Expand Down