diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-05-21 14:55:26 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-05-21 14:55:26 (GMT) |
commit | cc6a982de8b9030a04d85f69a29772bf6c3f442f (patch) | |
tree | 29cf0726c7e791329c7a540b7f4847956c50c1e9 /Demo/threads | |
parent | f0feec2cb684681139ad81acf4a6a541b57a6274 (diff) | |
download | cpython-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 'Demo/threads')
0 files changed, 0 insertions, 0 deletions