From: Georg Brandl Date: Mon, 15 Feb 2016 16:50:33 +0000 (+0100) Subject: Minor clarification in tutorial. X-Git-Tag: v3.6.0a1~604 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40383c8f10c6a34aee6f513dc30b2005951cc30b;p=thirdparty%2FPython%2Fcpython.git Minor clarification in tutorial. --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 813c8285f850..8453796007ce 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: