dis — Disassembler for Python bytecode — Python 3.16.0a0 documentation

docs.python.org

Tin mới

compileall — Byte-compile Python libraries

pickletools — Tools for pickle developers

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Python Language Services

Command-line interface¶

The dis module supports the analysis of CPython bytecode by disassembling it. The CPython bytecode which this module takes as an input is defined in the file Include/opcode.h and used by the compiler and the interpreter.

codeobject.co_lines

This generator function uses the co_lines() method of the code object code to find the offsets which are starts of lines in the source code. They are generated as (offset, lineno) pairs.

sys.monitoring: Access and control event monitoring

Do nothing code. Used by the interpreter to record BRANCH_LEFT and BRANCH_RIGHT events for sys.monitoring.

CO_ITERABLE_COROUTINE

Implements STACK[-1] = get_awaitable(STACK[-1]), where get_awaitable(o) returns o if o is a coroutine object or a generator object with the CO_ITERABLE_COROUTINE flag, or resolves o.__await__.

StopAsyncIteration

Terminates an async for loop. Handles an exception raised when awaiting a next item. The stack contains the async iterable in STACK[-2] and the raised exception in STACK[-1]. Both are popped. If the exception is not Stop

collections.abc.Mapping

If STACK[-1] is an instance of collections.abc.Mapping (or, more technically: if it has the Py_TPFLAGS_MAPPING flag set in its tp_flags), push True onto the stack. Otherwise, push False.

Py_TPFLAGS_MAPPING

If STACK[-1] is an instance of collections.abc.Mapping (or, more technically: if it has the Py_TPFLAGS_MAPPING flag set in its tp_flags), push True onto the stack. Otherwise, push False.

string.templatelib.Template

Constructs a new Template instance from a tuple of strings and a tuple of interpolations and pushes the resulting object onto the stack:

typing.TypeVarTuple