Skip to content

[3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361) #29361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:data:`sys.stdlib_module_names` now contains the macOS-specific module
:mod:`_scproxy`.
1 change: 1 addition & 0 deletions Python/stdlib_module_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ static const char* _Py_stdlib_module_names[] = {
"_pyio",
"_queue",
"_random",
"_scproxy",
"_sha1",
"_sha256",
"_sha3",
Expand Down
6 changes: 5 additions & 1 deletion Tools/scripts/generate_stdlib_module_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
'winsound'
)

# macOS extension modules
MACOS_MODULES = (
'_scproxy',
)

# Pure Python modules (Lib/*.py)
def list_python_modules(names):
Expand Down Expand Up @@ -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)
Expand Down