summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-01-24 15:10:17 (GMT)
committerGitHub <noreply@github.com>2024-01-24 15:10:17 (GMT)
commit981d172f7f0613d30bef4a8934b361db7fcf0672 (patch)
treebda610af879108b30ba43e39579900e35689543c /Lib/importlib/_bootstrap_external.py
parent6fadd68da5dd928847264b17f62a5b8b369c1c1e (diff)
downloadcpython-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.py3
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