PyFrameObject.f_stacktop

Next free slot in f_valuestack. Frame creation sets to f_valuestack. Frame evaluation usually NULLs it, but a frame that yields sets it to the current stack top.

struct PyFrameObject
PyObject** f_stacktop;

Meta