]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)
authorJonathan Oberländer <github@l3vi.de>
Sun, 28 Aug 2022 22:48:51 +0000 (00:48 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Aug 2022 22:48:51 +0000 (15:48 -0700)
Doc/reference/compound_stmts.rst

index 93c1720220f0439d2fb172c1db184888aefea2e4..751c7c2dbcf257366fe853217a83b58549896c87 100644 (file)
@@ -1122,7 +1122,7 @@ subject value:
 
    These classes accept a single positional argument, and the pattern there is matched
    against the whole object rather than an attribute. For example ``int(0|1)`` matches
-   the value ``0``, but not the values ``0.0`` or ``False``.
+   the value ``0``, but not the value ``0.0``.
 
 In simple terms ``CLS(P1, attr=P2)`` matches only if the following happens: