In my mind, the Python interpreter is simulate what a CPU run binary code.
And, processor will have a call stack when you invoke a function, Python as well.
So, is there a corresponding between the Python stack frame and processor's call stack? Like when we invoke a function in Python interpreter, it made a new stack frame, and what happened to processor is it push esp
, mov ebp, esp
, and so on.