summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-09-25 07:57:24 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2017-09-25 07:57:24 (GMT)
commit01438ed4c22ca150da1cc5c38d83a59b0b6a62a7 (patch)
treea2d2d77008c695e7caa7ab207b271a9ffcdf3376 /Doc/glossary.rst
parentd38caf68bb417232fb0ccecb5558d7d0ca4a9507 (diff)
downloadcpython-01438ed4c22ca150da1cc5c38d83a59b0b6a62a7.zip
cpython-01438ed4c22ca150da1cc5c38d83a59b0b6a62a7.tar.gz
cpython-01438ed4c22ca150da1cc5c38d83a59b0b6a62a7.tar.bz2
[3.6] bpo-18558: Clarify glossary entry for "Iterable" (GH-3732) (#3741)
(cherry picked from commit 0bf287b6e0a42877b06cbea5d0fe6474d8061caa)
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 dba9186..b947520 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