diff options
author | Brandt Bucher <brandt@python.org> | 2021-06-25 15:20:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 15:20:43 (GMT) |
commit | ca2009d72a52a98bf43aafa9ad270a4fcfabfc89 (patch) | |
tree | 0a3292c93a7eaa2085df03431ec9ccc65fd55fa4 /Doc | |
parent | 22e7effad571f8e524d2f71ff55bbf2a25306753 (diff) | |
download | cpython-ca2009d72a52a98bf43aafa9ad270a4fcfabfc89.zip cpython-ca2009d72a52a98bf43aafa9ad270a4fcfabfc89.tar.gz cpython-ca2009d72a52a98bf43aafa9ad270a4fcfabfc89.tar.bz2 |
bpo-43977: Properly update the tp_flags of existing subclasses when their parents are registered (GH-26864)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/dis.rst | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 65fbb00..645e94a 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -772,17 +772,20 @@ iterations of the loop. .. opcode:: MATCH_MAPPING - If TOS is an instance of :class:`collections.abc.Mapping`, push ``True`` onto - the stack. Otherwise, push ``False``. + If TOS is an instance of :class:`collections.abc.Mapping` (or, more technically: if + it has the :const:`Py_TPFLAGS_MAPPING` flag set in its + :c:member:`~PyTypeObject.tp_flags`), push ``True`` onto the stack. Otherwise, push + ``False``. .. versionadded:: 3.10 .. opcode:: MATCH_SEQUENCE - If TOS is an instance of :class:`collections.abc.Sequence` and is *not* an - instance of :class:`str`/:class:`bytes`/:class:`bytearray`, push ``True`` - onto the stack. Otherwise, push ``False``. + If TOS is an instance of :class:`collections.abc.Sequence` and is *not* an instance + of :class:`str`/:class:`bytes`/:class:`bytearray` (or, more technically: if it has + the :const:`Py_TPFLAGS_SEQUENCE` flag set in its :c:member:`~PyTypeObject.tp_flags`), + push ``True`` onto the stack. Otherwise, push ``False``. .. versionadded:: 3.10 |