[Python-checkins] bpo-41774: Tweak new programming FAQ entry (GH-22562)

Terry Jan Reedy webhook-mailer at python.org
Mon Oct 5 10:31:54 EDT 2020


https://github.com/python/cpython/commit/060937da988347a887a5f165b023d972fcb97802
commit: 060937da988347a887a5f165b023d972fcb97802
branch: master
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: GitHub <noreply at github.com>
date: 2020-10-05T10:31:44-04:00
summary:

bpo-41774: Tweak new programming FAQ entry (GH-22562)

Remove mention of space in "remove multiple items from list".

files:
M Doc/faq/programming.rst

diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 0b486d7e7e254..7bcedb0b5d75b 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -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?



More information about the Python-checkins mailing list