summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-11 10:44:52 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-06-11 10:44:52 (GMT)
commit08ade6faa0369a9167d150a1d85265b1a9ea58ef (patch)
tree287b48886b2f9dc890875d08dba06d200d7468d9 /Misc/NEWS
parentbfd73faf86cc0dc82754372d96318f95c43170c5 (diff)
downloadcpython-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/NEWS')
-rw-r--r--Misc/NEWS10
1 files changed, 9 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 24d1e7f..8b86366 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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().