[Python-checkins] GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)

miss-islington webhook-mailer at python.org
Mon Aug 29 03:14:38 EDT 2022


https://github.com/python/cpython/commit/b6fb779489d1daf0c32684eb614c92446d8eacb1
commit: b6fb779489d1daf0c32684eb614c92446d8eacb1
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-08-29T00:14:33-07:00
summary:

GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)

(cherry picked from commit 3d3a86ed40626471b2c9e7f1336b228eb0dd0879)

Co-authored-by: Jonathan Oberländer <github at l3vi.de>

files:
M Doc/reference/compound_stmts.rst

diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 2b429681e1a..911c38f7235 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1074,7 +1074,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:
 



More information about the Python-checkins mailing list