diff options
author | Guido van Rossum <guido@python.org> | 2003-04-11 18:43:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-04-11 18:43:06 (GMT) |
commit | efbbb1c60237a9a2997dc4b1ab213e4c6f0da824 (patch) | |
tree | c2fd52c7be4ed7015749f88056e8f6c558419f8f /Misc/NEWS | |
parent | a1ce93f87cb221be9a7466c2f9d2b7dc494f458d (diff) | |
download | cpython-efbbb1c60237a9a2997dc4b1ab213e4c6f0da824.zip cpython-efbbb1c60237a9a2997dc4b1ab213e4c6f0da824.tar.gz cpython-efbbb1c60237a9a2997dc4b1ab213e4c6f0da824.tar.bz2 |
Patch by Chad Netzer (with significant change):
- range() now works even if the arguments are longs with magnitude
larger than sys.maxint, as long as the total length of the sequence
fits. E.g., range(2**100, 2**101, 2**100) is the following list:
[1267650600228229401496703205376L]. (SF patch #707427.)
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -12,6 +12,11 @@ What's New in Python 2.3 beta 1? Core and builtins ----------------- +- range() now works even if the arguments are longs with magnitude + larger than sys.maxint, as long as the total length of the sequence + fits. E.g., range(2**100, 2**101, 2**100) is the following list: + [1267650600228229401496703205376L]. (SF patch #707427.) + - Some horridly obscure problems were fixed involving interaction between garbage collection and old-style classes with "ambitious" getattr hooks. If an old-style instance didn't have a __del__ method, |