mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -432,6 +432,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.12a5 3516 (Add COMPARE_AND_BRANCH instruction)
|
||||
# Python 3.12a5 3517 (Change YIELD_VALUE oparg to exception block depth)
|
||||
# Python 3.12a5 3518 (Add RETURN_CONST instruction)
|
||||
# Python 3.12a5 3519 (Modify SEND instruction)
|
||||
|
||||
# Python 3.13 will start with 3550
|
||||
|
||||
|
@ -444,7 +445,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
|
||||
# in PC/launcher.c must also be updated.
|
||||
|
||||
MAGIC_NUMBER = (3518).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3519).to_bytes(2, 'little') + b'\r\n'
|
||||
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue