]> granicus.if.org Git - python/commitdiff
Close #12838: fix range() call.
authorGeorg Brandl <georg@python.org>
Thu, 25 Aug 2011 09:52:26 +0000 (11:52 +0200)
committerGeorg Brandl <georg@python.org>
Thu, 25 Aug 2011 09:52:26 +0000 (11:52 +0200)
Doc/faq/programming.rst

index 07e681837a3009bf00dbbfb6519f7148ac5b7731..8b2f04790b28739155ee10493c7c8c52c76ee420 100644 (file)
@@ -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 ::