bpo-43445: Add frozen modules to sys.stdlib_module_names #24798
Conversation
Add frozen modules to sys.stdlib_module_names. For example, add "_frozen_importlib" and "_frozen_importlib_external" names. Add "list_frozen" command to Programs/_testembed.
It seems more useful to me to add a little function to |
What would be the use case for listing stdlib frozen modules? I didn't add any function because I failed to find an use case. It seems like sys.builtin_module_names is used in many places since built-in modules are special.
The only module which might matter is
I guess that the only people who really care are people creating their own Python binary with their own list of frozen modules. But I guess that they know what they put in the binary. |
307745a
into
python:master
I merged this PR to be able to work on https://bugs.python.org/issue43456 @nascheme: If you consider that it's useful to have an API to list frozen modules, feel free to propose a new PR for that. |
Add frozen modules to sys.stdlib_module_names. For example, add
"_frozen_importlib" and "_frozen_importlib_external" names.
Add "list_frozen" command to Programs/_testembed.
https://bugs.python.org/issue43445