summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMikhail Efimov <efimov.mikhail@gmail.com>2024-10-22 16:00:25 (GMT)
committerGitHub <noreply@github.com>2024-10-22 16:00:25 (GMT)
commit079875e39589eb0628b5883f7ffa387e7476ec06 (patch)
treea1cdeca4fa197debfaed79c2a8f309572d644b93 /Python
parent91ddde4af0c3031c84a967bcf59f6fb4f8a48c0d (diff)
downloadcpython-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.c1
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);
}