https://github.com/python/cpython/commit/7e941fa8e0454c7814ce3ec646136758c0db5a25 commit: 7e941fa8e0454c7814ce3ec646136758c0db5a25 branch: 3.8 author: Miss Skeleton (bot) <31488909+miss-islington at users.noreply.github.com> committer: GitHub <noreply at github.com> date: 2020年10月05日T07:42:10-07:00 summary: bpo-41774: Tweak new programming FAQ entry (GH-22562) Remove mention of space in "remove multiple items from list". (cherry picked from commit 060937da988347a887a5f165b023d972fcb97802) Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu> files: M Doc/faq/programming.rst diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 1af04483eb329..a64e8aca94468 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -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?