diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-06-12 12:15:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-12 12:15:17 (GMT) |
commit | 9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba (patch) | |
tree | 178272613398d4b75696f439134094b135a08f2a /Doc/library | |
parent | 4a42cebf6dd769e2fa4e234a9e91093b3ad1cb63 (diff) | |
download | cpython-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.rst | 2 |
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: |