mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
GH-100719: Remove the co_nplaincellvars
field from code objects. (GH-100721)
This commit is contained in:
parent
c31e356a10
commit
15aecf8dd7
10 changed files with 19 additions and 23 deletions
|
@ -9514,7 +9514,7 @@ super_init_without_args(_PyInterpreterFrame *cframe, PyCodeObject *co,
|
|||
|
||||
// Look for __class__ in the free vars.
|
||||
PyTypeObject *type = NULL;
|
||||
int i = co->co_nlocals + co->co_nplaincellvars;
|
||||
int i = PyCode_GetFirstFree(co);
|
||||
for (; i < co->co_nlocalsplus; i++) {
|
||||
assert((_PyLocals_GetKind(co->co_localspluskinds, i) & CO_FAST_FREE) != 0);
|
||||
PyObject *name = PyTuple_GET_ITEM(co->co_localsplusnames, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue