summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
Diffstat (limited to 'Misc')
-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.