Skip to content

Commit

Permalink
bpo-41774: Tweak new programming FAQ entry (GH-22562)
Browse files Browse the repository at this point in the history
Remove mention of space in "remove multiple items from list".
(cherry picked from commit 060937d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
miss-islington and terryjreedy committed Oct 5, 2020
1 parent a859680 commit 7e941fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/faq/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,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?
Expand Down

0 comments on commit 7e941fa

Please sign in to comment.