Code Object Visualizer

Code Object Properties

{% for co_attr, value in co.items() %} {% endfor %}
Field Value
{{ co_attr }}{{ value }}

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.