[issue7279] decimal.py: == and != comparisons involving NaNs
Mark Dickinson
report at bugs.python.org
Fri Apr 2 12:37:00 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Allowed hashing of Decimal('nan') in r79589; Decimal('snan') continues to raise TypeError.
I've also rewritten Decimal.__hash__ a little bit, so that it won't care if float('inf') raises an exception. This will all be much neater if the unified numeric hash is applied.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7279>
_______________________________________
More information about the Python-bugs-list
mailing list