summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-10-03 21:18:11 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-10-03 21:18:11 (GMT)
commit8f6693701c1899168f5bca96549ae2f2f590624e (patch)
tree1d2a60b9e8d754b3c0ada701a3e075d15f4c09c1 /Misc
parentd92e871ad8b71de1a276f94d14b797e2e049ced8 (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b01633a..01f860b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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