mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Close #12838: fix range() call.
This commit is contained in:
parent
175eb995d3
commit
e1eef41a18
1 changed files with 1 additions and 1 deletions
|
@ -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 ::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue