@@ -157,7 +157,7 @@ always available.
157157 Python interpreter. (This information is not available in any other way ---
158158 ``modules.keys() `` only lists the imported modules.)
159159
160- See also the :attr: `sys.module_names ` list.
160+ See also the :attr: `sys.stdlib_module_names ` list.
161161
162162
163163.. function :: call_tracing(func, args)
@@ -1062,24 +1062,6 @@ always available.
10621062 This is still called as a fallback if a :data: `meta_path ` entry doesn't
10631063 have a :meth: `~importlib.abc.MetaPathFinder.find_spec ` method.
10641064
1065- .. data :: module_names
1066-
1067- A frozenset of strings containing the names of standard library modules.
1068-
1069- It is the same on all platforms. Modules which are not available on
1070- some platforms and modules disabled at Python build are also listed.
1071- All module kinds are listed: pure Python, built-in, frozen and extension
1072- modules. Test modules are excluded.
1073-
1074- For packages, only sub-packages are listed, not sub-modules. For example,
1075- ``concurrent `` package and ``concurrent.futures `` sub-package are listed,
1076- but not ``concurrent.futures.base `` sub-module.
1077-
1078- See also the :attr: `sys.builtin_module_names ` list.
1079-
1080- .. versionadded :: 3.10
1081-
1082-
10831065.. data :: modules
10841066
10851067 This is a dictionary that maps module names to modules which have already been
@@ -1584,6 +1566,24 @@ always available.
15841566 to a console and Python apps started with :program: `pythonw `.
15851567
15861568
1569+ .. data :: stdlib_module_names
1570+
1571+ A frozenset of strings containing the names of standard library modules.
1572+
1573+ It is the same on all platforms. Modules which are not available on
1574+ some platforms and modules disabled at Python build are also listed.
1575+ All module kinds are listed: pure Python, built-in, frozen and extension
1576+ modules. Test modules are excluded.
1577+
1578+ For packages, only sub-packages are listed, not sub-modules. For example,
1579+ ``concurrent `` package and ``concurrent.futures `` sub-package are listed,
1580+ but not ``concurrent.futures.base `` sub-module.
1581+
1582+ See also the :attr: `sys.builtin_module_names ` list.
1583+
1584+ .. versionadded :: 3.10
1585+
1586+
15871587.. data :: thread_info
15881588
15891589 A :term: `named tuple ` holding information about the thread
0 commit comments