Rename enumerate() kw argument name to "iterable" and fix "sequence"->"iterable" in some docstrings.

This commit is contained in:
Georg Brandl 2008-05-16 13:27:32 +00:00
parent 1f2ba4b6da
commit d11ae5d6ec
3 changed files with 9 additions and 9 deletions

View file

@ -325,9 +325,9 @@ are always available. They are listed here in alphabetical order.
< abs(b)``.
.. function:: enumerate(sequence[, start=0])
.. function:: enumerate(iterable[, start=0])
Return an enumerate object. *sequence* must be a sequence, an
Return an enumerate object. *iterable* must be a sequence, an
:term:`iterator`, or some other object which supports iteration. The
:meth:`__next__` method of the iterator returned by :func:`enumerate` returns a
tuple containing a count (from *start* which defaults to 0) and the