diff options
author | Guido van Rossum <guido@python.org> | 2001-01-15 19:11:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-15 19:11:10 (GMT) |
commit | 051e335d420478a06a7026f6e74d2db2a20ab5d1 (patch) | |
tree | e8196f9c1cb15c1e52a72dbc62eec3d9ca64dac9 | |
parent | 65e0b99b611a42fd6548b2783a234f32630e6f1b (diff) | |
download | cpython-051e335d420478a06a7026f6e74d2db2a20ab5d1.zip cpython-051e335d420478a06a7026f6e74d2db2a20ab5d1.tar.gz cpython-051e335d420478a06a7026f6e74d2db2a20ab5d1.tar.bz2 |
Add note about new and improved xrange().
-rw-r--r-- | Misc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,6 +3,14 @@ What's New in Python 2.1 alpha 1? 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: 1) "from M import X" now works even if M is not a real module; it's |