mirror of
https://github.com/python/cpython
synced 2024-09-15 21:10:21 +00:00
GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)
This commit is contained in:
parent
023c51d9d8
commit
3d3a86ed40
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue