diff options
author | Jonathan Oberländer <github@l3vi.de> | 2022-08-28 22:48:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 22:48:51 (GMT) |
commit | 3d3a86ed40626471b2c9e7f1336b228eb0dd0879 (patch) | |
tree | 4bf996561895e8475fa3b48ef73c8ba24977c42d /Doc | |
parent | 023c51d9d8e2fd91069eea2bf12e373f1c71e9d2 (diff) | |
download | cpython-3d3a86ed40626471b2c9e7f1336b228eb0dd0879.zip cpython-3d3a86ed40626471b2c9e7f1336b228eb0dd0879.tar.gz cpython-3d3a86ed40626471b2c9e7f1336b228eb0dd0879.tar.bz2 |
GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)
Diffstat (limited to 'Doc')
-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 93c1720..751c7c2 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: |