aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-12-15 10:30:09 +0000
committerGitHub <noreply@github.com>2021-12-15 10:30:09 +0000
commit0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e (patch)
tree307cc32e8ca72f71eaa8250e976306adc939e9fd /Lib/importlib/_bootstrap_external.py
parent86de99588db3beff964137f4fe27dd1077a09b35 (diff)
downloadcpython-0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e.tar.gz
cpython-0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e.zip
bpo-46039: Split yield from in two (GH-30035)
* Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE. * Remove YIELD_FROM opcode.
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 abd0170cac0..0c1078accc8 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -373,6 +373,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.11a3 3465 (Add COPY_FREE_VARS opcode)
# Python 3.11a3 3466 (bpo-45292: PEP-654 except*)
# Python 3.11a4 3467 (Change CALL_xxx opcodes)
+# Python 3.11a4 3468 (Add SEND opcode)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -382,7 +383,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 = (3467).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3468).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'