mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-41774: Tweak new programming FAQ entry (GH-22562)
Remove mention of space in "remove multiple items from list".
(cherry picked from commit 060937da98)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
b6d37e15cf
commit
75dd70e1ce
1 changed files with 1 additions and 1 deletions
|
|
@ -1176,7 +1176,7 @@ Here are three variations.::
|
|||
mylist[:] = (x for x in mylist if keep_condition)
|
||||
mylist[:] = [x for x in mylist if keep_condition]
|
||||
|
||||
If space is not an issue, the list comprehension may be fastest.
|
||||
The list comprehension may be fastest.
|
||||
|
||||
|
||||
How do you make an array in Python?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue