From eacada8656981db1c90b747a2262cbc8b9eb9815 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 25 Aug 2011 11:52:26 +0200 Subject: [PATCH] Close #12838: fix range() call. --- Doc/faq/programming.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index e53facd5d60..268b91879ef 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 ::