summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-05 00:53:45 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-05 00:53:45 (GMT)
commit785261684e0e660dcdce48daf683cec541f4a8f2 (patch)
tree93a48bc9c7d2bf9725406c756a5535f298e583a0 /Misc
parent63c945392917cd9c228a613d2e965500452bb92e (diff)
downloadcpython-785261684e0e660dcdce48daf683cec541f4a8f2.zip
cpython-785261684e0e660dcdce48daf683cec541f4a8f2.tar.gz
cpython-785261684e0e660dcdce48daf683cec541f4a8f2.tar.bz2
Return reasonable results for math.log(long) and math.log10(long) (we were
getting Infs, NaNs, or nonsense in 2.1 and before; in yesterday's CVS we were getting OverflowError; but these functions always make good sense for positive arguments, no matter how large).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7d44a59..5e763c0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -81,6 +81,9 @@ Core
Library
+- math.log and math.log10 now return sensible results for even huge
+ long arguments. For example, math.log10(10 ** 10000) ~= 10000.0.
+
- A new function, imp.lock_held(), returns 1 when the import lock is
currently held. See the docs for the imp module.