mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +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
|
@ -2260,7 +2260,7 @@ compiler_make_closure(struct compiler *c, location loc,
|
|||
qualname = co->co_name;
|
||||
|
||||
if (co->co_nfreevars) {
|
||||
int i = co->co_nlocals + co->co_nplaincellvars;
|
||||
int i = PyCode_GetFirstFree(co);
|
||||
for (; i < co->co_nlocalsplus; ++i) {
|
||||
/* Bypass com_addop_varname because it will generate
|
||||
LOAD_DEREF but LOAD_CLOSURE is needed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue