diff options
author | Georg Brandl <georg@python.org> | 2011-08-25 09:52:26 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-08-25 09:52:26 (GMT) |
commit | 852eea20ef212088717fe0886d8224beb1676fa7 (patch) | |
tree | 249b36b6010c93b3d115b2b194d0195b8aa6819b /Doc | |
parent | b897168eb66a55de025fbff0fd1dccae7497e6b9 (diff) | |
download | cpython-852eea20ef212088717fe0886d8224beb1676fa7.zip cpython-852eea20ef212088717fe0886d8224beb1676fa7.tar.gz cpython-852eea20ef212088717fe0886d8224beb1676fa7.tar.bz2 |
Close #12838: fix range() call.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/faq/programming.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 07e6818..8b2f047 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 :: |