summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-04-06 10:48:59 (GMT)
committerGitHub <noreply@github.com>2021-04-06 10:48:59 (GMT)
commitb37181e69209746adc2119c471599a1ea5faa6c8 (patch)
tree3605b5e9447fe18ed0c87b745daef1216301583f /Lib/importlib
parent489c36920e94bfb4988b6f965bd0aafdfaff0d4f (diff)
downloadcpython-b37181e69209746adc2119c471599a1ea5faa6c8.zip
cpython-b37181e69209746adc2119c471599a1ea5faa6c8.tar.gz
cpython-b37181e69209746adc2119c471599a1ea5faa6c8.tar.bz2
bpo-43683: Handle generator entry in bytecode (GH-25138)
* Handle check for sending None to starting generator and coroutine into bytecode. * Document new bytecode and make it fail gracefully if mis-compiled.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 77bd0e0..d351ee0 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -315,6 +315,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.10a2 3433 (RERAISE restores f_lasti if oparg != 0)
# Python 3.10a6 3434 (PEP 634: Structural Pattern Matching)
# Python 3.10a7 3435 Use instruction offsets (as opposed to byte offsets).
+# Python 3.10a7 3436 (Add GEN_START bytecode #43683)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no