diff options
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index c94e1be051..a545cf87c9 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -3697,10 +3697,8 @@ class Context(object): for flag in flags: self._ignored_flags.remove(flag) - def __hash__(self): - """A Context cannot be hashed.""" - # We inherit object.__hash__, so we must deny this explicitly - raise TypeError("Cannot hash a Context.") + # We inherit object.__hash__, so we must deny this explicitly + __hash__ = None def Etiny(self): """Returns Etiny (= Emin - prec + 1)""" |