diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-06-11 10:44:52 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-06-11 10:44:52 (GMT) |
commit | 08ade6faa0369a9167d150a1d85265b1a9ea58ef (patch) | |
tree | 287b48886b2f9dc890875d08dba06d200d7468d9 /Misc | |
parent | bfd73faf86cc0dc82754372d96318f95c43170c5 (diff) | |
download | cpython-08ade6faa0369a9167d150a1d85265b1a9ea58ef.zip cpython-08ade6faa0369a9167d150a1d85265b1a9ea58ef.tar.gz cpython-08ade6faa0369a9167d150a1d85265b1a9ea58ef.tar.bz2 |
Issue #8188: Comparisons between Decimal objects and other numeric
objects (Fraction, float, complex, int) now all function as expected.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -417,6 +417,13 @@ C-API Library ------- +- Issue #8118: Comparisons between Decimal and Fraction objects are + now permitted, returning a result based on the exact numerical + values of the operands. This builds on issue #2531, which allowed + Decimal-to-float comparisons; all comparisons involving numeric + types (bool, int, float, complex, Decimal, Fraction) should now + act as expected. + - Issue #8897: Fix sunau module, use bytes to write the header. Patch written by Thomas Jollans. @@ -714,7 +721,8 @@ Library - Issue #2531: Comparison operations between floats and Decimal instances now return a result based on the numeric values of the operands; previously they returned an arbitrary result based on - the relative ordering of id(float) and id(Decimal). + the relative ordering of id(float) and id(Decimal). See also + issue #8118, which adds Decimal-to-Fraction comparisons. - Added a subtract() method to collections.Counter(). |