[Python-Dev] Re: New sys.module_names attribute in Python 3.10: list of all stdlib modules

2021年1月25日 09:44:06 -0800

On 1/25/21 5:03 AM, Victor Stinner wrote:
I just added a new sys.module_names attribute, list (technically a
frozenset) of all stdlib module names
The list is opinionated and defined by its documentation
 For packages, only sub-packages are listed, not sub-modules. For
 example, ``concurrent`` package and ``concurrent.futures``
 sub-package are listed, but not ``concurrent.futures.base``
 sub-module.
I'm not sure I understand the above. Is it fair to say that any stdlib module, 
except
for private or test (./Lib/test/*) modules, that can be imported are listed in
`sys.module_names`? My confusion stems from being able to import 
`concurrent.futures`
but not `concurrent.futures.base`.
--
~Ethan~
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/XF2RSEIQ5UEUOWEZKGAVX6KROKHNJWLZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to