mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -405,6 +405,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.11a7 3494 (New location info table)
|
||||
|
||||
# Python 3.12a1 3500 (Remove PRECALL opcode)
|
||||
# Python 3.12a1 3501 (YIELD_VALUE oparg == stack_depth)
|
||||
|
||||
# Python 3.13 will start with 3550
|
||||
|
||||
|
@ -418,7 +419,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 = (3500).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3501).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