aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2024-05-27 19:50:38 -0700
committerGitHub <noreply@github.com>2024-05-27 19:50:38 -0700
commita9a74da4a0ca0645f049e67b6434a95e30592c32 (patch)
tree99d8fd8e532ed3cd955e41acacbfd4a65bfa3f5e /Lib/importlib/_bootstrap_external.py
parent3e8b60905e97a4fe89bb24180063732214368938 (diff)
downloadcpython-a9a74da4a0ca0645f049e67b6434a95e30592c32.tar.gz
cpython-a9a74da4a0ca0645f049e67b6434a95e30592c32.zip
gh-119311: Fix name mangling with PEP 695 generic classes (#119464)
Fixes #119311. Fixes #119395.
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 68469863e7f..30c91801212 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -473,6 +473,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.13a5 3569 (Specialize CONTAINS_OP)
# Python 3.13a6 3570 (Add __firstlineno__ class attribute)
# Python 3.14a1 3600 (Add LOAD_COMMON_CONSTANT)
+# Python 3.14a1 3601 (Fix miscompilation of private names in generic classes)
# Python 3.15 will start with 3700
@@ -489,7 +490,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 = (3600).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3601).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c