diff options
author | Mark Shannon <mark@hotpy.org> | 2022-01-06 13:09:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 13:09:25 (GMT) |
commit | e028ae99ecee671c0e8a3eabb829b5b2acfc4441 (patch) | |
tree | 497e68f1caeb92104bf3a464977bb0e024131f69 /Doc | |
parent | 3e43fac2503afe219336742b150b3ef6e470686f (diff) | |
download | cpython-e028ae99ecee671c0e8a3eabb829b5b2acfc4441.zip cpython-e028ae99ecee671c0e8a3eabb829b5b2acfc4441.tar.gz cpython-e028ae99ecee671c0e8a3eabb829b5b2acfc4441.tar.bz2 |
bpo-45923: Handle call events in bytecode (GH-30364)
* Add a RESUME instruction to handle "call" events.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/dis.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 7afa62f..6bbe4ec 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1206,6 +1206,20 @@ All of the following opcodes use their arguments. .. versionadded:: 3.11 +.. opcode:: RESUME (where) + + A no-op. Performs internal tracing, debugging and optimization checks. + + The ``where`` operand marks where the ``RESUME`` occurs: + + * ``0`` The start of a function + * ``1`` After a ``yield`` expression + * ``2`` After a ``yield from`` expression + * ``3`` After an ``await`` expression + + .. versionadded:: 3.11 + + .. opcode:: HAVE_ARGUMENT This is not really an opcode. It identifies the dividing line between |