]> granicus.if.org Git - python/commit
Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently
authorMark Dickinson <dickinsm@gmail.com>
Fri, 14 Mar 2008 14:23:37 +0000 (14:23 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 14 Mar 2008 14:23:37 +0000 (14:23 +0000)
commitc23b8a7af9b1548b645a79c5ea37a3ba780750ab
tree828190fa47a6d20587b59936afacba387755eaa2
parent6119540d70ef1ad7ff6ad6940f185cc972164494
Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently
across platforms:  it should now raise OverflowError on all
platforms.  (Previously it raised OverflowError only on
non IEEE 754 platforms.)

Also fix the (already existing) test for this behaviour
so that it actually raises TestFailed instead of just
referencing it.
Lib/test/test_struct.py
Misc/NEWS
Objects/floatobject.c