summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorStefan Pochmann <609905+pochmann@users.noreply.github.com>2023-02-24 16:13:05 (GMT)
committerGitHub <noreply@github.com>2023-02-24 16:13:05 (GMT)
commit81bf10e4f20a0f6d36b67085eefafdf7ebb97c33 (patch)
treeff6c25926fd867da1049cd8e016d56ce7a4eec08 /Doc/library/functions.rst
parente5e1c1fabd8b5626f9193e6c61b9d7ceb7fb2f95 (diff)
downloadcpython-81bf10e4f20a0f6d36b67085eefafdf7ebb97c33.zip
cpython-81bf10e4f20a0f6d36b67085eefafdf7ebb97c33.tar.gz
cpython-81bf10e4f20a0f6d36b67085eefafdf7ebb97c33.tar.bz2
gh-102105 Fix wording in filterfalse/quantify/filter (GH-102189)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 3ff2884..f0f3747 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -623,7 +623,7 @@ are always available. They are listed here in alphabetical order.
.. function:: filter(function, iterable)
Construct an iterator from those elements of *iterable* for which *function*
- returns true. *iterable* may be either a sequence, a container which
+ is true. *iterable* may be either a sequence, a container which
supports iteration, or an iterator. If *function* is ``None``, the identity
function is assumed, that is, all elements of *iterable* that are false are
removed.
@@ -634,7 +634,7 @@ are always available. They are listed here in alphabetical order.
``None``.
See :func:`itertools.filterfalse` for the complementary function that returns
- elements of *iterable* for which *function* returns false.
+ elements of *iterable* for which *function* is false.
.. class:: float(x=0.0)