From 40383c8f10c6a34aee6f513dc30b2005951cc30b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 15 Feb 2016 17:50:33 +0100 Subject: Minor clarification in tutorial. --- Doc/tutorial/controlflow.rst | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v0.12