[Python-checkins] cpython (3.2): Close #12838: fix range() call.
georg.brandl
python-checkins at python.org
Thu Aug 25 11:53:00 CEST 2011
http://hg.python.org/cpython/rev/0abe03195d09
changeset: 72068:0abe03195d09
branch: 3.2
parent: 72058:20944ea49392
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
More information about the Python-checkins
mailing list