[Python-checkins] CVS: python/dist/src/Misc NEWS,1.96,1.97

Guido van Rossum gvanrossum@users.sourceforge.net
Mon, 15 Jan 2001 11:11:12 -0800


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

Modified Files:
	NEWS 
Log Message:
Add note about new and improved xrange().


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -r1.96 -r1.97
*** NEWS	2001/01/15 16:36:08	1.96
--- NEWS	2001/01/15 19:11:10	1.97
***************
*** 4,7 ****
--- 4,15 ----
  Core language, builtins, and interpreter
  
+ - The xrange() object implementation has been improved so that
+   xrange(sys.maxint) can be used on 64-bit platforms.  There's still a
+   limitation that in this case len(xrange(sys.maxint)) can't be
+   calculated, but the common idiom "for i in xrange(sys.maxint)" will
+   work fine as long as the index i doesn't actually reach 2**31.
+   (Python uses regular ints for sequence and string indices; fixing
+   that is much more work.)
+ 
  - Two changes to from...import: