summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 1f540d9..d3124f9 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -927,6 +927,20 @@ All of the following opcodes use their arguments.
``cmp_op[opname]``.
+.. opcode:: IS_OP (invert)
+
+ Performs ``is`` comparison, or ``is not`` if ``invert`` is 1.
+
+ .. versionadded:: 3.9
+
+
+.. opcode:: CONTAINS_OP (invert)
+
+ Performs ``in`` comparison, or ``not in`` if ``invert`` is 1.
+
+ .. versionadded:: 3.9
+
+
.. opcode:: IMPORT_NAME (namei)
Imports the module ``co_names[namei]``. TOS and TOS1 are popped and provide
@@ -961,6 +975,13 @@ All of the following opcodes use their arguments.
.. versionadded:: 3.1
+.. opcode:: JUMP_IF_NOT_EXC_MATCH (target)
+
+ Tests whether the second value on the stack is an exception matching TOS,
+ and jumps if it is not. Pops two values from the stack.
+
+ .. versionadded:: 3.9
+
.. opcode:: JUMP_IF_TRUE_OR_POP (target)