Issue 1586315: no wraparound for enumerate() (original) (raw)

Created on 2006-10-28 16:39 by georg.brandl, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
enum-longs.diff georg.brandl,2006-10-28 16:39 #1
Messages (2)
msg51289 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-10-28 16:39
This patch enhances enumerate() in two ways: * first, an optional start argument is added, which will be the first index * second, the index does not wrap around at sys.maxint, but will continue using long integers.
msg51290 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2006-10-31 16:18
Logged In: YES user_id=80475 Guido already rejected having an optional start parameter. And without that, there is no need for wrap-around logic. I would like to keep enumerate simple, fast, and as clean as a whistle.
History
Date User Action Args
2022-04-11 14:56:21 admin set github: 44172
2006-10-28 16:39:15 georg.brandl create