diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-04-02 10:35:12 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-04-02 10:35:12 (GMT) |
commit | f3eeca16cbadd7da5836ed781572343863b1a074 (patch) | |
tree | 14fc31b72773122d3c13f7e72cbdb57b28365e05 /Lib/new.py | |
parent | e096e82e827f6092706c7349fd4944c275382eb5 (diff) | |
download | cpython-f3eeca16cbadd7da5836ed781572343863b1a074.zip cpython-f3eeca16cbadd7da5836ed781572343863b1a074.tar.gz cpython-f3eeca16cbadd7da5836ed781572343863b1a074.tar.bz2 |
Issue #7279: Make Decimal('nan') hashable. Decimal('snan') remains unhashable.
Also rewrite the Decimal __hash__ method so that it doesn't rely on
float('inf') being valid: float('inf') could raise an exception on
platforms not using IEEE 754 arithmetic.
Diffstat (limited to 'Lib/new.py')
0 files changed, 0 insertions, 0 deletions