]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove outdated docstring from the `quantify` itertools recipe (#109726)
authorŁukasz Langa <lukasz@langa.pl>
Fri, 22 Sep 2023 13:09:32 +0000 (15:09 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Sep 2023 13:09:32 +0000 (15:09 +0200)
Doc/library/itertools.rst

index bd347e6448f1a02cc7f3d66b243d7aa45ffaeae4..5846d784c88cccd6db7869ae49e7c84ba5ed2af9 100644 (file)
@@ -845,7 +845,6 @@ which incur interpreter overhead.
 
    def quantify(iterable, pred=bool):
        "Given a predicate that returns True or False, count the True results."
-       "Count how many times the predicate is True"
        return sum(map(pred, iterable))
 
    def all_equal(iterable):