8000 [3.9] bpo-41774: Tweak new programming FAQ entry (GH-22562) by miss-islington · Pull Request #22563 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.9] bpo-41774: Tweak new programming FAQ entry (GH-22562) #22 8000 563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2020
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
8000
Diff view
bpo-41774: Tweak new programming FAQ entry (GH-22562)
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
terryjreedy authored and miss-islington committed Oct 5, 2020
commit a4ce2252d00f5dba1a7a173eafb79cf74c90ad13
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
0