summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-05-09 17:54:23 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-05-09 17:54:23 (GMT)
commitf8476c15730939c4ee64d94f08c2d6e40b09195d (patch)
tree4b2107074cba7baf8bec2ceff3a049dcf2698f9b /Misc
parent8bd5334a9e192bcd1c182574d585179bc9d8be2d (diff)
downloadcpython-f8476c15730939c4ee64d94f08c2d6e40b09195d.zip
cpython-f8476c15730939c4ee64d94f08c2d6e40b09195d.tar.gz
cpython-f8476c15730939c4ee64d94f08c2d6e40b09195d.tar.bz2
Issue #2487. math.ldexp(x, n) raised OverflowError when n was large and
negative; fix to return an (appropriately signed) zero instead.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 12522db..2b7b52f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -23,6 +23,11 @@ Extension Modules
Library
-------
+- Issue #2487: change the semantics of math.ldexp(x, n) when n is too
+ large to fit in a C long. ldexp(x, n) now returns a zero (with
+ suitable sign) if n is large and negative; previously, it raised
+ OverflowError.
+
- The toaiff module has been deprecated for removal in Python 3.0.
- The test.testall module has been deprecated for removal in Python 3.0.