summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-08-15 03:34:48 +0000
committerTim Peters <tim.peters@gmail.com>2000-08-15 03:34:48 +0000
commitf224e936f483ce6e762bba7a208c02cb34257765 (patch)
treec31cb5f5a956de0ff74e5fa56eef17ce9c5c7b0f /Python/sysmodule.c
parentc63e174f5a09a7eeca581e6af4bca88bfebdab03 (diff)
downloadcpython-f224e936f483ce6e762bba7a208c02cb34257765.tar.gz
Fix for http://sourceforge.net/bugs/?func=detailbug&bug_id=111866&group_id=5470.
This was a misleading bug -- the true "bug" was that hash(x) gave an error return when x is an infinity. Fixed that. Added new Py_IS_INFINITY macro to pyport.h. Rearranged code to reduce growing duplication in hashing of float and complex numbers, pushing Trent's earlier stab at that to a logical conclusion. Fixed exceedingly rare bug where hashing of floats could return -1 even if there wasn't an error (didn't waste time trying to construct a test case, it was simply obvious from the code that it *could* happen). Improved complex hash so that hash(complex(x, y)) doesn't systematically equal hash(complex(y, x)) anymore.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions