Python Dis Module
Bytecode disassembler — dis, get_instructions, code_info. This category documents 5 Python dis module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: dis.dis(), dis.get_instructions(), dis.code_info(), dis.show_code(), dis.Bytecode(). dis.dis() disassembles Python bytecode for a function, generator, class, method, or code object. dis.get_instructions() returns an iterator over bytecode instructions for analysis. dis.code_info() returns detailed information about a code object. dis.show_code() prints detailed code object information. dis.Bytecode() creates a Bytecode object for analyzing bytecode. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground. Python Reference documents 978+ functions, methods, and modules across 114 categories of the standard library, and every entry in this Dis Module category follows the same format — syntax first, then what it does, the parameters it accepts, what it returns, and a working code example — so once you have read one page you can read them all.