diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-03-14 14:23:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-03-14 14:23:37 (GMT) |
commit | c23b8a7af9b1548b645a79c5ea37a3ba780750ab (patch) | |
tree | 828190fa47a6d20587b59936afacba387755eaa2 /Misc | |
parent | 6119540d70ef1ad7ff6ad6940f185cc972164494 (diff) | |
download | cpython-c23b8a7af9b1548b645a79c5ea37a3ba780750ab.zip cpython-c23b8a7af9b1548b645a79c5ea37a3ba780750ab.tar.gz cpython-c23b8a7af9b1548b645a79c5ea37a3ba780750ab.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -21,6 +21,10 @@ Core and builtins Library ------- +- Issue #705836: struct.pack(">f", x) now raises OverflowError on all + platforms when x is too large to fit into an IEEE 754 float; previously + it only raised OverflowError on non IEEE 754 platforms. + - Issue #1106316: pdb.post_mortem()'s parameter, "traceback", is now optional: it defaults to the traceback of the exception that is currently being handled (is mandatory to be in the middle of an exception, otherwise |