]> granicus.if.org Git - python/commitdiff
Minor clarification in tutorial.
authorGeorg Brandl <georg@python.org>
Mon, 15 Feb 2016 16:50:33 +0000 (17:50 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 15 Feb 2016 16:50:33 +0000 (17:50 +0100)
Doc/tutorial/controlflow.rst

index 813c8285f8505071089d06bfba78e1e902754e16..8453796007cee7b788ae07b6f4cac816e0f256f6 100644 (file)
@@ -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: