summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-06-12 12:15:17 (GMT)
committerGitHub <noreply@github.com>2021-06-12 12:15:17 (GMT)
commit9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba (patch)
tree178272613398d4b75696f439134094b135a08f2a /Doc/library
parent4a42cebf6dd769e2fa4e234a9e91093b3ad1cb63 (diff)
downloadcpython-9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba.zip
cpython-9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba.tar.gz
cpython-9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba.tar.bz2
bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index e34a888..3b2ff80 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -739,7 +739,7 @@ number, :class:`float`, or :class:`complex`::
"""Compute the hash of a float x."""
if math.isnan(x):
- return super().__hash__()
+ return object.__hash__(x)
elif math.isinf(x):
return sys.hash_info.inf if x > 0 else -sys.hash_info.inf
else: