From: Georg Brandl Date: Thu, 25 Aug 2011 09:52:26 +0000 (+0200) Subject: Close #12838: fix range() call. X-Git-Tag: v2.7.3rc1~490 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eacada8656981db1c90b747a2262cbc8b9eb9815;p=thirdparty%2FPython%2Fcpython.git Close #12838: fix range() call. --- diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index e53facd5d60a..268b91879ef0 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -171,7 +171,7 @@ tick of the interpreter's mainloop using highly optimized C implementations. Thus to get the same effect as:: L2 = [] - for i in range[3]: + for i in range(3): L2.append(L1[i]) it is much shorter and far faster to use ::