]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #2531: Make float-to-decimal comparisons return correct results.
authorMark Dickinson <dickinsm@gmail.com>
Fri, 2 Apr 2010 08:53:22 +0000 (08:53 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 2 Apr 2010 08:53:22 +0000 (08:53 +0000)
commit99d8096c174ccb025e8ff55e614ea3820f89e204
treeb93c027821ca0e003ce090b97319f151246230ff
parent6eba77923565dc90d5b77b4b3f0e8f82f6109714
Issue #2531: Make float-to-decimal comparisons return correct results.

Float to decimal comparison operations now return a result based on
the numeric values of the operands.  Decimal.__hash__ has also been
fixed so that Decimal and float values that compare equal have equal
hash value.
Doc/library/decimal.rst
Lib/decimal.py
Lib/test/test_decimal.py
Misc/NEWS