diff options
author | Raymond Hettinger <python@rcn.com> | 2007-10-03 21:18:11 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-10-03 21:18:11 (GMT) |
commit | 8f6693701c1899168f5bca96549ae2f2f590624e (patch) | |
tree | 1d2a60b9e8d754b3c0ada701a3e075d15f4c09c1 /Misc | |
parent | d92e871ad8b71de1a276f94d14b797e2e049ced8 (diff) | |
download | cpython-8f6693701c1899168f5bca96549ae2f2f590624e.zip cpython-8f6693701c1899168f5bca96549ae2f2f590624e.tar.gz cpython-8f6693701c1899168f5bca96549ae2f2f590624e.tar.bz2 |
enumerate() is no longer bounded to using sequences shorter than LONG_MAX. The possibility of overflow was sending some newsgroup posters into a tizzy.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ What's New in Python 2.6 alpha 1? Core and builtins ----------------- +- The enumerate() builtin function is no longer bounded to sequences smaller + than LONG_MAX. Formerly, it raised an OverflowError. Now, automatically + shifts from ints to longs. + - Issue #1686386: Tuple's tp_repr did not take into account the possibility of having a self-referential tuple, which is possible from C code. Nor did object's tp_str consider that a type's tp_str could do something that could |