[issue2831] Adding start to enumerate()
Raymond Hettinger
report at bugs.python.org
Mon May 12 08:23:55 CEST 2008
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Forget the part about METH_O. That was incorrect.
Another idea to order the positional args as ([start,], iterator).
That corresponds to with range([start,] stop) and it matches the output
order (number, element):
for i, element in enumerate(10, iterable):
^-----------------------^
^-------------------------^
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2831>
__________________________________
More information about the Python-bugs-list
mailing list