Files
cpython/Objects
Tim Peters 39dce29365 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.
2000-08-15 03:34:48 +00:00
..
2000-05-02 18:34:30 +00:00
2000-07-09 04:14:42 +00:00
2000-07-09 05:40:56 +00:00
2000-07-09 06:03:25 +00:00
2000-07-09 06:03:25 +00:00
2000-07-09 06:03:25 +00:00
2000-07-09 06:21:27 +00:00
2000-07-09 07:04:36 +00:00
2000-07-09 06:21:27 +00:00
2000-07-09 07:04:36 +00:00