summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-05-21 14:55:26 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-05-21 14:55:26 (GMT)
commitcc6a982de8b9030a04d85f69a29772bf6c3f442f (patch)
tree29cf0726c7e791329c7a540b7f4847956c50c1e9 /Misc/NEWS
parentf0feec2cb684681139ad81acf4a6a541b57a6274 (diff)
downloadcpython-cc6a982de8b9030a04d85f69a29772bf6c3f442f.zip
cpython-cc6a982de8b9030a04d85f69a29772bf6c3f442f.tar.gz
cpython-cc6a982de8b9030a04d85f69a29772bf6c3f442f.tar.bz2
Issue #8748: Fix two issues with comparisons between complex and integer
objects. (1) The comparison could incorrectly return True in some cases (2**53+1 == complex(2**53) == 2**53), breaking transivity of equality. (2) The comparison raised an OverflowError for large integers, leading to unpredictable exceptions when combining integers and complex objects in sets or dicts. Patch by Meador Inge.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS13
1 files changed, 13 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 5ac16df..9772a15 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,19 @@ What's New in Python 3.2 Alpha 1?
Core and Builtins
-----------------
+- Issue #8748: Fix two issues with comparisons between complex and integer
+ objects. (1) The comparison could incorrectly return True in some cases
+ (2**53+1 == complex(2**53) == 2**53), breaking transivity of equality.
+ (2) The comparison raised an OverflowError for large integers, leading
+ to unpredictable exceptions when combining integers and complex objects
+ in sets or dicts.
+
+- Issue #8748: Fix comparisons between complex and integer objects.
+ These used to convert the integer object to a complex number before
+ doing the comparison, giving a potentially incorrect result when
+ that conversion involved precision loss. (Ex: 2**53+1 ==
+ complex(2**53) returned True; now returns False.)
+
- Issue #8766: Initialize _warnings module before importing the first module.
Fix a crash if an empty directory called "encodings" exists in sys.path.