summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-15 16:50:33 (GMT)
committerGeorg Brandl <georg@python.org>2016-02-15 16:50:33 (GMT)
commit40383c8f10c6a34aee6f513dc30b2005951cc30b (patch)
tree40501e8414e87fc230d3485841ca09efa71a0ce3 /Doc/tutorial
parent00538ffe3a291f6c35baf15d0ca61dcf6a74314b (diff)
downloadcpython-40383c8f10c6a34aee6f513dc30b2005951cc30b.zip
cpython-40383c8f10c6a34aee6f513dc30b2005951cc30b.tar.gz
cpython-40383c8f10c6a34aee6f513dc30b2005951cc30b.tar.bz2
Minor clarification in tutorial.
Diffstat (limited to 'Doc/tutorial')
-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 813c828..8453796 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: