[Python-checkins] python/dist/src/Misc NEWS,1.337.2.4.2.59,1.337.2.4.2.60

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Wed, 12 Feb 2003 11:09:55 -0800


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

Modified Files:
      Tag: release22-maint
	NEWS 
Log Message:
Backport SF #660455 fix.

Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.337.2.4.2.59
retrieving revision 1.337.2.4.2.60
diff -C2 -d -r1.337.2.4.2.59 -r1.337.2.4.2.60
*** NEWS	10 Feb 2003 01:57:50 -0000	1.337.2.4.2.59
--- NEWS	12 Feb 2003 19:09:45 -0000	1.337.2.4.2.60
***************
*** 3,6 ****
--- 3,18 ----
  ============================
  
+ - Through a bytecode optimizer bug (and I bet you didn't even know
+   Python *had* a bytecode optimizer :-), "unsigned" hex/oct constants
+   with a leading minus sign would come out with the wrong sign.
+   ("Unsigned" hex/oct constants are those with a face value in the
+   range sys.maxint+1 through sys.maxint*2+1, inclusive; these have
+   always been interpreted as negative numbers through sign folding.)
+   E.g. 0xffffffff is -1, and -(0xffffffff) is 1, but -0xffffffff would
+   come out as -4294967295.  This was the case in Python 2.2 through
+   2.2.2 and 2.3a1, and in Python 2.4 it will once again have that
+   value, but according to PEP 237 it really needs to be 1 in Python
+   2.2.3 and 2.3.  (SF #660455)
+ 
  - SF bug #678518:  fix some bugs in the parser module.