[Python-checkins] [3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361)
tiran
webhook-mailer at python.org
Tue Nov 2 07:32:41 EDT 2021
https://github.com/python/cpython/commit/b2ae63161926527e31b9a9071b38836ad88e9a92
commit: b2ae63161926527e31b9a9071b38836ad88e9a92
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: tiran <christian at python.org>
date: 2021-11-02T12:32:36+01:00
summary:
[3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361)
Co-authored-by: Christian Heimes <christian at python.org>
files:
A Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst
M Python/stdlib_module_names.h
M Tools/scripts/generate_stdlib_module_names.py
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst b/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst
new file mode 100644
index 0000000000000..afd73a1266279
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst
@@ -0,0 +1,2 @@
+:data:`sys.stdlib_module_names` now contains the macOS-specific module
+:mod:`_scproxy`.
diff --git a/Python/stdlib_module_names.h b/Python/stdlib_module_names.h
index b09b8dc7a394a..50cf340e543b4 100644
--- a/Python/stdlib_module_names.h
+++ b/Python/stdlib_module_names.h
@@ -61,6 +61,7 @@ static const char* _Py_stdlib_module_names[] = {
"_pyio",
"_queue",
"_random",
+"_scproxy",
"_sha1",
"_sha256",
"_sha3",
diff --git a/Tools/scripts/generate_stdlib_module_names.py b/Tools/scripts/generate_stdlib_module_names.py
index 716a6d4b7a07f..dc6a074274715 100644
--- a/Tools/scripts/generate_stdlib_module_names.py
+++ b/Tools/scripts/generate_stdlib_module_names.py
@@ -51,6 +51,10 @@
'winsound'
)
+# macOS extension modules
+MACOS_MODULES = (
+ '_scproxy',
+)
# Pure Python modules (Lib/*.py)
def list_python_modules(names):
@@ -123,7 +127,7 @@ def list_frozen(names):
def list_modules():
- names = set(sys.builtin_module_names) | set(WINDOWS_MODULES)
+ names = set(sys.builtin_module_names) | set(WINDOWS_MODULES) | set(MACOS_MODULES)
list_modules_setup_extensions(names)
list_setup_extensions(names)
list_packages(names)
More information about the Python-checkins
mailing list