PyDocs

Python Language Services

dis

Disassembler of Python byte code into mnemonics.
Symbols in dis

b

Bytecode
The bytecode operations of a piece of code

c

cmp_op
Sequence of all compare operation names.
code_info
Formatted details of methods, functions, or code.

d

dis
Disassemble classes, methods, functions, and other compiled objects.
disassemble
Disassemble a code object.
disco
Disassemble a code object.
distb
Disassemble a traceback (default: last traceback).

f

findlabels
Detect all offsets in a byte code which are jump targets.
findlinestarts
Find the offsets in a byte code which are start of lines in the source.

g

get_instructions
Iterator for the opcodes in methods, functions or code

h

hasarg
Sequence of bytecodes that use their argument.
hascompare
Sequence of bytecodes of Boolean operations.
hasconst
Sequence of bytecodes that access a constant.
hasexc
Sequence of bytecodes that set an exception handler.
hasfree
Sequence of bytecodes that access a free (closure) variable.
hasjabs
Sequence of bytecodes that have an absolute jump target.
hasjrel
Sequence of bytecodes that have a relative jump target.
hasjump
Sequence of bytecodes that have a jump target.
haslocal
Sequence of bytecodes that access a local variable.
hasname
Sequence of bytecodes that access an attribute by name.

i

Instruction
Details for a bytecode operation.

o

opmap
Dictionary mapping operation names to bytecodes.
opname
Sequence of operation names, indexable using the bytecode.

p

Positions
Positions(lineno, end_lineno, col_offset, end_col_offset)

s

show_code
Print details of methods, functions, or code to *file*.
stack_effect
Compute the stack effect of the opcode.