Skip to content

Commit 717e50e

Browse files
committed
Issue #16747: Reflow iterable glossary entry to match 3.x change e19ed347523e.
1 parent 830b4a8 commit 717e50e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Doc/glossary.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -378,17 +378,17 @@ Glossary
378378
slowly. See also :term:`interactive`.
379379

380380
iterable
381-
An object capable of returning its members one at a
382-
time. Examples of iterables include all sequence types (such as
383-
:class:`list`, :class:`str`, and :class:`tuple`) and some non-sequence
384-
types like :class:`dict` and :class:`file` and objects of any classes you
385-
define with an :meth:`__iter__` or :meth:`__getitem__` method. Iterables
386-
can be used in a :keyword:`for` loop and in many other places where a
387-
sequence is needed (:func:`zip`, :func:`map`, ...). When an iterable
388-
object is passed as an argument to the built-in function :func:`iter`, it
389-
returns an iterator for the object. This iterator is good for one pass
390-
over the set of values. When using iterables, it is usually not necessary
391-
to call :func:`iter` or deal with iterator objects yourself. The ``for``
381+
An object capable of returning its members one at a time. Examples of
382+
iterables include all sequence types (such as :class:`list`, :class:`str`,
383+
and :class:`tuple`) and some non-sequence types like :class:`dict`
384+
and :class:`file` and objects of any classes you define
385+
with an :meth:`__iter__` or :meth:`__getitem__` method. Iterables can be
386+
used in a :keyword:`for` loop and in many other places where a sequence is
387+
needed (:func:`zip`, :func:`map`, ...). When an iterable object is passed
388+
as an argument to the built-in function :func:`iter`, it returns an
389+
iterator for the object. This iterator is good for one pass over the set
390+
of values. When using iterables, it is usually not necessary to call
391+
:func:`iter` or deal with iterator objects yourself. The ``for``
392392
statement does that automatically for you, creating a temporary unnamed
393393
variable to hold the iterator for the duration of the loop. See also
394394
:term:`iterator`, :term:`sequence`, and :term:`generator`.

0 commit comments

Comments
 (0)