Kaydet (Commit) 1fb9f528 authored tarafından Georg Brandl's avatar Georg Brandl

Typo fix.

üst 0ebf27aa
...@@ -731,7 +731,7 @@ class Decimal(object): ...@@ -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.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment