mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Typo fix.
This commit is contained in:
parent
0ebf27aad9
commit
1fb9f528bd
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ class Decimal(object):
|
||||||
"""x.__hash__() <==> hash(x)"""
|
"""x.__hash__() <==> hash(x)"""
|
||||||
# Decimal integers must hash the same as the ints
|
# Decimal integers must hash the same as the ints
|
||||||
# Non-integer decimals are normalized and hashed as strings
|
# Non-integer decimals are normalized and hashed as strings
|
||||||
# Normalization assures that hast(100E-1) == hash(10)
|
# Normalization assures that hash(100E-1) == hash(10)
|
||||||
if self._is_special:
|
if self._is_special:
|
||||||
if self._isnan():
|
if self._isnan():
|
||||||
raise TypeError('Cannot hash a NaN value.')
|
raise TypeError('Cannot hash a NaN value.')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue