diff options
author | Carl Meyer <carl@oddbird.net> | 2023-05-19 00:07:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 00:07:35 (GMT) |
commit | 86e6f16ccb97f66f2b9a31191ce347dca499d48c (patch) | |
tree | 32a0860742245c2d9a5cc509716d747ad5563594 /Python/compile.c | |
parent | 3fadd7d5857842fc5cddd4c496b73161b0bcb421 (diff) | |
download | cpython-86e6f16ccb97f66f2b9a31191ce347dca499d48c.zip cpython-86e6f16ccb97f66f2b9a31191ce347dca499d48c.tar.gz cpython-86e6f16ccb97f66f2b9a31191ce347dca499d48c.tar.bz2 |
gh-104602: ensure all cellvars are known up front (#104603)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 96cd6da..2db03f7 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1252,7 +1252,7 @@ compiler_enter_scope(struct compiler *c, identifier name, } u->u_metadata.u_name = Py_NewRef(name); u->u_metadata.u_varnames = list2dict(u->u_ste->ste_varnames); - u->u_metadata.u_cellvars = dictbytype(u->u_ste->ste_symbols, CELL, 0, 0); + u->u_metadata.u_cellvars = dictbytype(u->u_ste->ste_symbols, CELL, DEF_COMP_CELL, 0); if (!u->u_metadata.u_varnames || !u->u_metadata.u_cellvars) { compiler_unit_free(u); return ERROR; |