mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Rename enumerate() kw argument name to "iterable" and fix "sequence"->"iterable" in some docstrings.
This commit is contained in:
parent
1f2ba4b6da
commit
d11ae5d6ec
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue