diff options
author | Mikhail Efimov <efimov.mikhail@gmail.com> | 2024-10-22 16:00:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 16:00:25 (GMT) |
commit | 079875e39589eb0628b5883f7ffa387e7476ec06 (patch) | |
tree | a1cdeca4fa197debfaed79c2a8f309572d644b93 /Python | |
parent | 91ddde4af0c3031c84a967bcf59f6fb4f8a48c0d (diff) | |
download | cpython-079875e39589eb0628b5883f7ffa387e7476ec06.zip cpython-079875e39589eb0628b5883f7ffa387e7476ec06.tar.gz cpython-079875e39589eb0628b5883f7ffa387e7476ec06.tar.bz2 |
gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (#125178)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/codegen.c b/Python/codegen.c index 689d2b5..bfacc6f 100644 --- a/Python/codegen.c +++ b/Python/codegen.c @@ -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); } |