summaryrefslogtreecommitdiff
path: root/Doc/tutorial/controlflow.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-15 17:50:33 +0100
committerGeorg Brandl <georg@python.org>2016-02-15 17:50:33 +0100
commit3a52ffb97e14566c89bc007a43420b6d7d38aa34 (patch)
tree6d379e53fab580fd038be95d9f750141deeea36d /Doc/tutorial/controlflow.rst
parent3bf76f9fdebc6df95bd95720d975b2676bd8d017 (diff)
downloadcpython-3a52ffb97e14566c89bc007a43420b6d7d38aa34.tar.gz
Minor clarification in tutorial.
Diffstat (limited to 'Doc/tutorial/controlflow.rst')
-rw-r--r--Doc/tutorial/controlflow.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 813c8285f8..8453796007 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -78,6 +78,9 @@ slice notation makes this especially convenient::
>>> words
['defenestrate', 'cat', 'window', 'defenestrate']
+With ``for w in words:``, the example would attempt to create an infinite list,
+inserting ``defenestrate`` over and over again.
+
.. _tut-range: