]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Programming FAQ: fix some punctuaction typos (GH-144058) (#144186)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 25 Jan 2026 17:09:04 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Sun, 25 Jan 2026 17:09:04 +0000 (17:09 +0000)
Programming FAQ: fix some punctuaction typos (GH-144058)

(cherry picked from commit 03e651d601c7d54ffe93ef1bbd4f66fafb89eded)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/faq/programming.rst

index 6f9dfa8616ed4426c0e2791e310a285c46dc7f75..138a5ca7a7516f3e86192f4416f5a3649656ce38 100644 (file)
@@ -1226,13 +1226,13 @@ This converts the list into a set, thereby removing duplicates, and then back
 into a list.
 
 
-How do you remove multiple items from a list
---------------------------------------------
+How do you remove multiple items from a list?
+---------------------------------------------
 
 As with removing duplicates, explicitly iterating in reverse with a
 delete condition is one possibility.  However, it is easier and faster
 to use slice replacement with an implicit or explicit forward iteration.
-Here are three variations.::
+Here are three variations::
 
    mylist[:] = filter(keep_function, mylist)
    mylist[:] = (x for x in mylist if keep_condition)