commit | f3eeca16cbadd7da5836ed781572343863b1a074 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Fri Apr 02 10:35:12 2010 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Fri Apr 02 10:35:12 2010 +0000 |
tree | 14fc31b72773122d3c13f7e72cbdb57b28365e05 | |
parent | e096e82e827f6092706c7349fd4944c275382eb5 [diff] |
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.