diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-08-29 07:14:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 07:14:33 (GMT) |
commit | b6fb779489d1daf0c32684eb614c92446d8eacb1 (patch) | |
tree | c8a5507268f98c04f23c751385a97f61ef5ac7f9 /Doc/reference | |
parent | f6f8acb6d14b3adbeef2730e874264d7209bfffc (diff) | |
download | cpython-b6fb779489d1daf0c32684eb614c92446d8eacb1.zip cpython-b6fb779489d1daf0c32684eb614c92446d8eacb1.tar.gz cpython-b6fb779489d1daf0c32684eb614c92446d8eacb1.tar.bz2 |
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@l3vi.de>
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 2b42968..911c38f 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: |