--- Doc/library/stdtypes.rst 2010-04-06 11:49:43.000000000 +0200
+++ Doc/library/b.stdtypes.rst 2010-04-06 11:54:54.000000000 +0200
@@ -610,9 +610,9 @@
:class:`fraction.Fraction`, and all finite instances of :class:`float` and
:class:`decimal.Decimal`. Essentially, this function is given by reduction
modulo ``P`` for a fixed Mersenne prime ``P``; currently, the prime used is ``P
-= 2**31 - 1`` on 32-bit machines and ``P = 2**61 - 1`` on 64-bit machines. The
-value of ``P`` is made available to Python as the :attr:`modulus` attribute of
-:data:`sys.hash_info`.
+= 2**31 - 1`` on machines with 32-bit longs and ``P = 2**61 - 1`` on machines
+with 64-bit longs. The value of ``P`` is made available to Python as the
+:attr:`modulus` attribute of :data:`sys.hash_info`.
Here are the rules in detail:
@@ -671,7 +671,7 @@
if m < 0:
hash_ = -hash_
if hash_ == -1:
- hash = -2
+ hash_ = -2
return hash_