diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 13:27:32 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 13:27:32 (GMT) |
commit | d11ae5d6ecda1d233af651a360c9f9140992f05d (patch) | |
tree | e7db859b829e3efe4583f72286dd57da4aec86fb /Doc | |
parent | 1f2ba4b6dad80f97aeecb5be8f35f44ca792c983 (diff) | |
download | cpython-d11ae5d6ecda1d233af651a360c9f9140992f05d.zip cpython-d11ae5d6ecda1d233af651a360c9f9140992f05d.tar.gz cpython-d11ae5d6ecda1d233af651a360c9f9140992f05d.tar.bz2 |
Rename enumerate() kw argument name to "iterable" and fix "sequence"->"iterable" in some docstrings.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index def6ae6..875eea0 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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 |