Py

Python Bytecode & Scope Stepper

Step 0 / 23
700ms
Late Binding Closures
Functions created in loops capture variable cells, looking up the value when called, resulting in late binding.
CPython Disassembly (Bytecode)
Standard Output & Result
> Evaluating...
Call Stack & LEGB Scope Chain Graph
LOAD_CONST
VM Evaluation Stack
Heap Memory Reference Inspector
Execution Stepper Active: Late Binding Closures
Step 0/23 | VM Opcode: MAKE_FUNCTION | Result: [2, 2, 2]
Enjoy this tool? Build your own with Super