summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-05-30 13:18:10 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-05-30 13:18:10 (GMT)
commit4ca7c3c089cf59d14a76f8035b360f4fbf98f9bb (patch)
tree12e13bfbc97606d0c62096d2f1e5ce536cc0d0e5 /Misc
parent4b3035d0b8f10112e2e9f348ded2bd721ad6ddb8 (diff)
downloadcpython-4ca7c3c089cf59d14a76f8035b360f4fbf98f9bb.zip
cpython-4ca7c3c089cf59d14a76f8035b360f4fbf98f9bb.tar.gz
cpython-4ca7c3c089cf59d14a76f8035b360f4fbf98f9bb.tar.bz2
Issue #8748: Fix incorrect results from comparisons between an integer
and a complex instance. Based on a patch by Meador Inge.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e63d905..352ebf4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,13 @@ What's New in Python 2.7 Release Candidate 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 #5211: Implicit coercion for the complex type is now completely
removed. (Coercion for arithmetic operations was already removed in 2.7
alpha 4, but coercion for rich comparisons was accidentally left in.)