mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-87849: Simplify stack effect of SEND and specialize it for generators and coroutines. (GH-101788)
This commit is contained in:
parent
a1f08f5f19
commit
160f2fe2b9
15 changed files with 191 additions and 105 deletions
|
@ -1789,6 +1789,8 @@ compiler_add_yield_from(struct compiler *c, location loc, int await)
|
|||
ADDOP(c, loc, CLEANUP_THROW);
|
||||
|
||||
USE_LABEL(c, exit);
|
||||
ADDOP_I(c, loc, SWAP, 2);
|
||||
ADDOP(c, loc, POP_TOP);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue