dis.show_code()
dis.show_code() is a Python function in the Dis Module category. Prints detailed code object information. The syntax is dis.show_code(x, *, file=None). Returns: None (prints to stdout). A typical example: dis.show_code(hello). A close sibling is dis.dis(), which disassembles Python bytecode for a function, generator, class, method, or code object. A close sibling is dis.get_instructions(), which returns an iterator over bytecode instructions for analysis. A close sibling is dis.code_info(), which returns detailed information about a code object. A close sibling is dis.Bytecode(), which creates a Bytecode object for analyzing bytecode. More about this category: Bytecode disassembler — dis, get_instructions, code_info. Related Dis Module entries: dis.dis(), dis.get_instructions(), dis.code_info(), dis.Bytecode(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try dis.show_code() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.