mirror of https://github.com/python/cpython
Close #12838: fix range() call.
This commit is contained in:
parent
8a9369bfa4
commit
eacada8656
|
@ -171,7 +171,7 @@ tick of the interpreter's mainloop using highly optimized C implementations.
|
||||||
Thus to get the same effect as::
|
Thus to get the same effect as::
|
||||||
|
|
||||||
L2 = []
|
L2 = []
|
||||||
for i in range[3]:
|
for i in range(3):
|
||||||
L2.append(L1[i])
|
L2.append(L1[i])
|
||||||
|
|
||||||
it is much shorter and far faster to use ::
|
it is much shorter and far faster to use ::
|
||||||
|
|
Loading…
Reference in New Issue