[Python-checkins] python/dist/src/Misc NEWS,1.771,1.772

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 24 May 2003 13:18:26 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv23294/Misc

Modified Files:
	NEWS 
Log Message:
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.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.771
retrieving revision 1.772
diff -C2 -d -r1.771 -r1.772
*** NEWS	21 May 2003 21:29:46 -0000	1.771
--- NEWS	24 May 2003 20:18:24 -0000	1.772
***************
*** 13,16 ****
--- 13,22 ----
  -----------------
  
+ - 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.