Code Object Visualizer

Code Object Properties

Field Value
co_argcount{{co.co_argcount}}
co_cellvars{{co.co_cellvars}}
co_code{{co.co_code.hex()}}
co_consts{{co.co_consts}}
co_filename{{co.co_filename}}
co_firstlineno{{co.co_firstlineno}}
co_freevars{{co.co_freevars}}
co_kwonlyargcount{{co.co_kwonlyargcount}}
co_lnotab{{co.co_lnotab}}
co_name{{co.co_name}}
co_names{{co.co_names}}
co_nlocals{{co.co_nlocals}}
co_stacksize{{co.co_stacksize}}
co_varnames{{co.co_varnames}}

Disassembled Code

{% set ns = namespace(lastline=1) %} {% for instr in ins %} {% if instr.starts_line %} {% set ns.lastline = instr.starts_line %} {% endif %} {% endfor %}
OpCode Operation Name Numeric Arg Resolved Arg Value Argument description Index Offset Starts Line Is Jump Target?
{{instr.opcode}} {{instr.opname}} {{instr.arg}} {{instr.argval}} {{instr.argrepr}} {{instr.offset}} {{instr.starts_line}} {{instr.is_jump_target}}
{{code}}

Graph direction:

Node Properties

Select a node on the AST graph to see properties.