summaryrefslogtreecommitdiff
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2017-09-25 00:52:06 -0700
committerGitHub <noreply@github.com>2017-09-25 00:52:06 -0700
commit0bf287b6e0a42877b06cbea5d0fe6474d8061caa (patch)
tree76def9a789d144407d61ad7da0190eceef579f95 /Doc/glossary.rst
parentb1d1c422ccb9a1711c2d90660373edce9204adcb (diff)
downloadcpython-git-0bf287b6e0a42877b06cbea5d0fe6474d8061caa.tar.gz
bpo-18558: Clarify glossary entry for "Iterable" (#3732)
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index dba9186d93..b947520b96 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -535,7 +535,10 @@ Glossary
iterables include all sequence types (such as :class:`list`, :class:`str`,
and :class:`tuple`) and some non-sequence types like :class:`dict`,
:term:`file objects <file object>`, and objects of any classes you define
- with an :meth:`__iter__` or :meth:`__getitem__` method. Iterables can be
+ with an :meth:`__iter__` method or with a :meth:`__getitem__` method
+ that implements :term:`Sequence` semantics.
+
+ Iterables can be
used in a :keyword:`for` loop and in many other places where a sequence is
needed (:func:`zip`, :func:`map`, ...). When an iterable object is passed
as an argument to the built-in function :func:`iter`, it returns an