Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f516368

Browse files
committed
and in genobject.c
1 parent 754fd74 commit f516368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/genobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ _PyGen_yf(PyGenObject *gen)
363363
assert(_PyCode_CODE(_PyGen_GetCode(gen))[0].op.code != SEND);
364364
return NULL;
365365
}
366-
if (!is_resume(frame->instr_ptr) || frame->instr_ptr->op.arg < 2)
366+
if (!is_resume(frame->instr_ptr) || frame->instr_ptr->op.arg < RESUME_AFTER_YIELD_FROM)
367367
{
368368
/* Not in a yield from */
369369
return NULL;

0 commit comments

Comments
 (0)