Skip to content
Prev Previous commit
Next Next commit
emit symbolic flags
  • Loading branch information
iritkatriel committed Jun 8, 2023
commit 35430de502b8666f44e4bad4c9e546f900187461
1 change: 1 addition & 0 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ dummy_func(

inst(INSTRUMENTED_YIELD_VALUE, (retval -- unused)) {
assert(frame != &entry_frame);
assert(oparg >= 0); /* make the generator identify this as HAS_ARG */
PyGenObject *gen = _PyFrame_GetGenerator(frame);
gen->gi_frame_state = FRAME_SUSPENDED;
_PyFrame_SetStackPointer(frame, stack_pointer - 1);
Expand Down
Loading