summaryrefslogtreecommitdiffstats
path: root/Doc/library/itertools.rst
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2023-09-22 13:09:32 (GMT)
committerGitHub <noreply@github.com>2023-09-22 13:09:32 (GMT)
commit46b63ced2564ad6c3d7b65e0ea1f04fd5c7d2959 (patch)
tree2e24d8e94fd9cd8fbdaeece8bbca18ad3ea64338 /Doc/library/itertools.rst
parentcade5960ae5949899bccbec3af72b0287d0f6749 (diff)
downloadcpython-46b63ced2564ad6c3d7b65e0ea1f04fd5c7d2959.zip
cpython-46b63ced2564ad6c3d7b65e0ea1f04fd5c7d2959.tar.gz
cpython-46b63ced2564ad6c3d7b65e0ea1f04fd5c7d2959.tar.bz2
Remove outdated docstring from the `quantify` itertools recipe (#109726)
Diffstat (limited to 'Doc/library/itertools.rst')
-rw-r--r--Doc/library/itertools.rst1
1 files changed, 0 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index bd347e6..5846d78 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -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):