[Python-checkins] cpython: Minor clarification in tutorial.

georg.brandl python-checkins at python.org
Mon Feb 15 11:50:46 EST 2016


https://hg.python.org/cpython/rev/6c6f7dff597b
changeset:   100247:6c6f7dff597b
user:        Georg Brandl <georg at python.org>
date:        Mon Feb 15 17:50:33 2016 +0100
summary:
  Minor clarification in tutorial.

files:
  Doc/tutorial/controlflow.rst |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -78,6 +78,9 @@
    >>> 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:
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list