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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/XF2RSEIQ5UEUOWEZKGAVX6KROKHNJWLZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to