Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-41774: Tweak new programming FAQ entry
Remove mention of space in "remove multiple items from list".
  • Loading branch information
terryjreedy committed Oct 5, 2020
commit f5111fc0a4348533f339547dce379835a61cc45e
2 changes: 1 addition & 1 deletion Doc/faq/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down