diff --git a/Python/compile.c b/Python/compile.c index ffde903..475bdd4 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3432,8 +3432,8 @@ compiler_comprehension_generator(struct compiler *c, else { /* Sub-iter - calculate on the fly */ VISIT(c, expr, gen->iter); - ADDOP(c, GET_ITER); } + ADDOP(c, GET_ITER); compiler_use_next_block(c, start); ADDOP_JREL(c, FOR_ITER, anchor); NEXT_BLOCK(c); @@ -3549,7 +3549,6 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type, Py_DECREF(co); VISIT(c, expr, outermost_iter); - ADDOP(c, GET_ITER); ADDOP_I(c, CALL_FUNCTION, 1); return 1; error_in_scope: