Understanding of function call / frame creation / frame initialization

Hi, team, I’m trying to understand what happens in function call. To be specific, I want to know the details of frame structure f_localsplus.

I tried to understand it from https://github.com/python/cpython/blob/3.10/Objects/frameobject.c , and conclude with the following:

Is my understanding correct? I’m talking about the seven claims in the above figure.

1 Like