mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. (GH-92960)
This commit is contained in:
parent
70aa1b9b91
commit
3fd8610002
9 changed files with 35 additions and 26 deletions
|
@ -2698,6 +2698,7 @@ handle_eval_breaker:
|
|||
}
|
||||
|
||||
TARGET(YIELD_VALUE) {
|
||||
assert(oparg == STACK_LEVEL());
|
||||
assert(frame->is_entry);
|
||||
PyObject *retval = POP();
|
||||
_PyFrame_GetGenerator(frame)->gi_frame_state = FRAME_SUSPENDED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue