distutils

The distutils package provides support for building and installing additional modules into a Python installation. The new modules may be either 100%-pure Python, or may be extension modules written in C, or may be collections of Python packages which include modules coded in both Python and C. Most Python users will not want to use this module directly, but instead use the cross-version tools maintained by the Python Packaging Authority. In particular, setuptools is an enhanced alternative to d

dis.stack_effect()

dis.stack_effect(opcode[, oparg]) Compute the stack effect of opcode with argument oparg. New in version 3.4.

dis.show_code()

dis.show_code(x, *, file=None) Print detailed code object information for the supplied function, method, source code string or code object to file (or sys.stdout if file is not specified). This is a convenient shorthand for print(code_info(x), file=file), intended for interactive exploration at the interpreter prompt. New in version 3.2. Changed in version 3.4: Added file parameter.

dis.opname

dis.opname Sequence of operation names, indexable using the bytecode.

dis.opmap

dis.opmap Dictionary mapping operation names to bytecodes.

dis.Instruction.starts_line

starts_line line started by this opcode (if any), otherwise None

dis.Instruction.opname

opname human readable name for operation

dis.Instruction.opcode

opcode numeric code for operation, corresponding to the opcode values listed below and the bytecode values in the Opcode collections.

dis.Instruction.offset

offset start index of operation within bytecode sequence

dis.Instruction.is_jump_target

is_jump_target True if other code jumps to here, otherwise False