FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) by tiran · Pull Request #29358 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .h  (1) .py  (1) .rst  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
'winsound'
)

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

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

Back | FazBrowse Home | New Git URL