diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-05-24 20:18:24 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-05-24 20:18:24 (GMT) |
commit | e87568dd9a8a1ccdcc05398c19ab45243b1979b5 (patch) | |
tree | 5516eedc9948940cbd255179e81017ae54bf6433 /Misc | |
parent | 0ed39577ddcc7dadb642b316eb90e91b60bacdcc (diff) | |
download | cpython-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/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |