{% if tpl_t == 'AST' %}

AST Visualizer

Not yet implemented

{% elif tpl_t == 'CO' %}

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

{% for instr in ins %} {% 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}}
{% else %} Not sure what this is..? {% endif %}