]> granicus.if.org Git - python/commit
Raise OverflowError when appropriate on long->float conversion. Most of
authorTim Peters <tim.peters@gmail.com>
Tue, 4 Sep 2001 05:14:19 +0000 (05:14 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 4 Sep 2001 05:14:19 +0000 (05:14 +0000)
commit9fffa3eea3a7e99b0179988e7a016a45bf63ab96
tree1b891e323dff2790bcd2b74ad4071cb0d380803d
parent1832de4bc07e7ffd5938b41e8d7d8fcf8b5e12e2
Raise OverflowError when appropriate on long->float conversion.  Most of
the fiddling is simply due to that no caller of PyLong_AsDouble ever
checked for failure (so that's fixing old bugs).  PyLong_AsDouble is much
faster for big inputs now too, but that's more of a happy consequence
than a design goal.
Lib/test/test_long.py
Misc/NEWS
Objects/complexobject.c
Objects/floatobject.c
Objects/longobject.c