From 86e6f16ccb97f66f2b9a31191ce347dca499d48c Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Thu, 18 May 2023 18:07:35 -0600 Subject: gh-104602: ensure all cellvars are known up front (#104603) Co-authored-by: Jelle Zijlstra --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 96cd6daa29f..2db03f7176e 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; -- cgit v1.2.3