25 Jan
2021
25 Jan
'21
9:29 a.m.
On Mon, Jan 25, 2021 at 4:18 PM Antoine Pitrou
On Mon, 25 Jan 2021 14:03:22 +0100 Victor Stinner
wrote: The list is opinionated and defined by its documentation:
So "the list is opinionated" means there can be false negatives, i.e. some stdlib modules which are not present in this list?
Test modules of the stdlib are excluded. Example:
import sys '_testcapi' in sys.module_names # _testcapi extension False 'test' in sys.module_names # Lib/test/ package False import _testcapi _testcapi
import test test
It can be changed if it's an issue. That's also why I sent an email to python-dev, to see if there is something wrong with sys.module_names definition. Victor -- Night gathers, and now my watch begins. It shall not end until my death.