mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)
This commit is contained in:
parent
91ddde4af0
commit
079875e395
4 changed files with 77 additions and 0 deletions
|
@ -4164,6 +4164,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
|
|||
|
||||
if (IS_JUMP_TARGET_LABEL(start)) {
|
||||
depth++;
|
||||
ADDOP(c, LOC(gen->iter), GET_ITER);
|
||||
USE_LABEL(c, start);
|
||||
ADDOP_JUMP(c, LOC(gen->iter), FOR_ITER, anchor);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue