[Patches] [ python-Patches-1586315 ] no wraparound for enumerate()
SourceForge.net
noreply at sourceforge.net
Tue Oct 31 17:18:41 CET 2006
Patches item #1586315, was opened at 2006-10-28 11:39
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1586315&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.6
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Georg Brandl (gbrandl)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: no wraparound for enumerate()
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2006-10-31 11:18
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1586315&group_id=5470
More information about the Patches
mailing list