summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-03-14 14:23:37 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-03-14 14:23:37 (GMT)
commitc23b8a7af9b1548b645a79c5ea37a3ba780750ab (patch)
tree828190fa47a6d20587b59936afacba387755eaa2 /Misc
parent6119540d70ef1ad7ff6ad6940f185cc972164494 (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 65ce4c0..3397f0c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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