Skip to content

Commit 251ead8

Browse files
committed
Make frames a PyVarObject instead of a PyObject.
1 parent 9c63e6d commit 251ead8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Include/frameobject.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typedef struct {
1414
} PyTryBlock;
1515

1616
typedef struct _frame {
17-
PyObject_HEAD
17+
PyObject_VAR_HEAD
1818
struct _frame *f_back; /* previous frame, or NULL */
1919
PyCodeObject *f_code; /* code segment */
2020
PyObject *f_builtins; /* builtin symbol table (PyDictObject) */
@@ -34,7 +34,6 @@ typedef struct _frame {
3434
in this scope */
3535
int f_iblock; /* index in f_blockstack */
3636
PyTryBlock f_blockstack[CO_MAXBLOCKS]; /* for try and loop blocks */
37-
int f_size; /* size of localsplus */
3837
int f_nlocals; /* number of locals */
3938
int f_ncells;
4039
int f_nfreevars;

0 commit comments

Comments
 (0)