mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
GH-128534: Instrument branches for async for loops. (GH-130569)
This commit is contained in:
@@ -2041,6 +2041,7 @@ codegen_async_for(compiler *c, stmt_ty s)
|
||||
ADDOP_LOAD_CONST(c, loc, Py_None);
|
||||
ADD_YIELD_FROM(c, loc, 1);
|
||||
ADDOP(c, loc, POP_BLOCK); /* for SETUP_FINALLY */
|
||||
ADDOP(c, loc, NOT_TAKEN);
|
||||
|
||||
/* Success block for __anext__ */
|
||||
VISIT(c, expr, s->v.AsyncFor.target);
|
||||
|
||||
Reference in New Issue
Block a user