From: Jonathan Oberländer Date: Sun, 28 Aug 2022 22:48:51 +0000 (+0200) Subject: GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361) X-Git-Tag: v3.12.0a1~542 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d3a86ed40626471b2c9e7f1336b228eb0dd0879;p=thirdparty%2FPython%2Fcpython.git GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361) --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 93c1720220f0..751c7c2dbcf2 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -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: