classmethod from_traceback(tb) Construct a Bytecode instance from the given traceback, setting current_offset
dis.show_code(x, *, file=None) Print detailed code object information for the supplied function, method, source code string
is_parameter() Return True if the symbol is a parameter.
class ast.NodeTransformer A NodeVisitor subclass that walks the abstract syntax tree and allows modification of
dis.opmap Dictionary mapping operation names to bytecodes.
get_locals() Return a tuple containing names of locals in this function.
parser.expr(source) The expr() function parses the parameter source as if it were an input to compile(source
dis.get_instructions(x, *, first_line=None) Return an iterator over the instructions in the supplied function, method, source
dis.hasfree Sequence of bytecodes that access a free variable (note that ‘free’ in this context refers to names in the current
dis.distb(tb=None, *, file=None) Disassemble the top-of-stack function of a traceback, using the last traceback if none was
Page 3 of 15