http://hg.python.org/cpython/rev/6e156a6c4fd9 changeset: 72237:6e156a6c4fd9 branch: 3.2 user: Georg Brandl <georg at python.org> date: Thu Aug 25 11:52:26 2011 +0200 summary: Close #12838: fix range() call. files: Doc/faq/programming.rst | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -171,7 +171,7 @@ 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 :: -- Repository URL: http://hg.python.org/cpython