summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-05-24 20:18:24 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-05-24 20:18:24 (GMT)
commite87568dd9a8a1ccdcc05398c19ab45243b1979b5 (patch)
tree5516eedc9948940cbd255179e81017ae54bf6433 /Misc
parent0ed39577ddcc7dadb642b316eb90e91b60bacdcc (diff)
downloadcpython-e87568dd9a8a1ccdcc05398c19ab45243b1979b5.zip
cpython-e87568dd9a8a1ccdcc05398c19ab45243b1979b5.tar.gz
cpython-e87568dd9a8a1ccdcc05398c19ab45243b1979b5.tar.bz2
SF bug 705231: Assertion failed, python aborts.
float_pow(): Don't let the platform pow() raise -1.0 to an integer power anymore; at least glibc gets it wrong in some cases. Note that math.pow() will continue to deliver wrong (but platform-native) results in such cases.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b7b444a..a63f022 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,12 @@ What's New in Python 2.3 beta 2?
Core and builtins
-----------------
+- SF bug 705231: builtin pow() no longer lets the platform C pow()
+ raise -1.0 to integer powers, because (at least) glibc gets it wrong
+ in some cases. The result should be -1.0 if the power is odd and 1.0
+ if the power is even, and any float with a sufficiently large exponent
+ is (mathematically) an exact even integer.
+
- The encoding attribute has been added for file objects, and set to
the terminal encoding on Unix and Windows.