Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d581fff

Browse files
committed
#16747: fix link to file objects in the glossary.
1 parent 78f3ce5 commit d581fff

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/glossary.rst

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

358358
iterable
359-
An object capable of returning its members one at a
360-
time. Examples of iterables include all sequence types (such as
361-
:class:`list`, :class:`str`, and :class:`tuple`) and some non-sequence
362-
types like :class:`dict` and :class:`file` and objects of any classes you
363-
define with an :meth:`__iter__` or :meth:`__getitem__` method. Iterables
364-
can be used in a :keyword:`for` loop and in many other places where a
365-
sequence is needed (:func:`zip`, :func:`map`, ...). When an iterable
366-
object is passed as an argument to the built-in function :func:`iter`, it
367-
returns an iterator for the object. This iterator is good for one pass
368-
over the set of values. When using iterables, it is usually not necessary
369-
to call :func:`iter` or deal with iterator objects yourself. The ``for``
359+
An object capable of returning its members one at a time. Examples of
360+
iterables include all sequence types (such as :class:`list`, :class:`str`,
361+
and :class:`tuple`) and some non-sequence types like :class:`dict`,
362+
:term:`file objects <file object>`, and objects of any classes you define
363+
with an :meth:`__iter__` or :meth:`__getitem__` method. Iterables can be
364+
used in a :keyword:`for` loop and in many other places where a sequence is
365+
needed (:func:`zip`, :func:`map`, ...). When an iterable object is passed
366+
as an argument to the built-in function :func:`iter`, it returns an
367+
iterator for the object. This iterator is good for one pass over the set
368+
of values. When using iterables, it is usually not necessary to call
369+
:func:`iter` or deal with iterator objects yourself. The ``for``
370370
statement does that automatically for you, creating a temporary unnamed
371371
variable to hold the iterator for the duration of the loop. See also
372372
:term:`iterator`, :term:`sequence`, and :term:`generator`.

0 commit comments

Comments
 (0)