• Mark Dickinson's avatar
    Issue #8748: Fix two issues with comparisons between complex and integer · cc6a982d
    Mark Dickinson yazdı
    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.
    cc6a982d
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
runtests.sh Loading commit data...
setup.py Loading commit data...