summaryrefslogtreecommitdiff
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
commit40383c8f10c6a34aee6f513dc30b2005951cc30b (patch)
tree40501e8414e87fc230d3485841ca09efa71a0ce3
parent00538ffe3a291f6c35baf15d0ca61dcf6a74314b (diff)
downloadcpython-git-40383c8f10c6a34aee6f513dc30b2005951cc30b.tar.gz
Minor clarification in 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 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: