[issue8635] enumerate() docstring doesn't cover optional start argument

Daniel Urban report at bugs.python.org
Sun May 9 11:33:01 CEST 2010


Daniel Urban <urban.dani+py at gmail.com> added the comment:

Attached a patch. It changes the docstring to:
"enumerate(iterable[, start]) -> iterator for index, value of iterable

Return an enumerate object.  iterable must be another object that supports
iteration, start must be an integer (defaults to 0).  The enumerate object
yields pairs containing a count (from start) and a value yielded by the
iterable argument.  enumerate is useful for obtaining an indexed list:
(0, seq[0]), (1, seq[1]), (2, seq[2]), ..."

----------
keywords: +patch
nosy: +durban
Added file: http://bugs.python.org/file17271/issue8635.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8635>
_______________________________________


More information about the Python-bugs-list mailing list