diff options
author | Mark Shannon <mark@hotpy.org> | 2024-01-24 15:10:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 15:10:17 (GMT) |
commit | 981d172f7f0613d30bef4a8934b361db7fcf0672 (patch) | |
tree | bda610af879108b30ba43e39579900e35689543c /Lib/importlib/_bootstrap_external.py | |
parent | 6fadd68da5dd928847264b17f62a5b8b369c1c1e (diff) | |
download | cpython-981d172f7f0613d30bef4a8934b361db7fcf0672.zip cpython-981d172f7f0613d30bef4a8934b361db7fcf0672.tar.gz cpython-981d172f7f0613d30bef4a8934b361db7fcf0672.tar.bz2 |
GH-112354: `END_FOR` instruction to only pop one value. (GH-114247)
* Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops.
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index a4d2b7e..2a9aef0 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -464,6 +464,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.13a1 3565 (Oparg of YIELD_VALUE indicates whether it is in a yield-from) # Python 3.13a1 3566 (Emit JUMP_NO_INTERRUPT instead of JUMP for non-loop no-lineno cases) # Python 3.13a1 3567 (Reimplement line number propagation by the compiler) +# Python 3.13a1 3568 (Change semantics of END_FOR) # Python 3.14 will start with 3600 @@ -480,7 +481,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 = (3567).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3568).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |