Skip to content

Commit

Permalink
GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)
Browse files Browse the repository at this point in the history
  • Loading branch information
L3viathan committed Aug 28, 2022
1 parent 023c51d commit 3d3a86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/compound_stmts.rst
Expand Up @@ -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:

Expand Down

0 comments on commit 3d3a86e

Please sign in to comment.