You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, the xml modules have actually been requested (#3787) so that's probably where one should start.
(edit: dumping the code for finding stdlib modules here, since it's not straightforward and I find I've needed it a couple times. for finding typeshed stdlib modules, look at stubtest)
Details
def get_stdlib(submodules: bool = False):
all_stdlib = set()
importers = filter(
lambda x: isinstance(x, importlib.machinery.FileFinder),
pkgutil.iter_importers()
)
for importer in importers:
modules = {m for m, _ in pkgutil.iter_importer_modules(importer)}
# Hacky, but whatever
if "json" in modules or "_json" in modules:
if submodules:
all_stdlib.update(m.name for m in pkgutil.walk_packages([importer.path]))
else:
all_stdlib.update(modules)
all_stdlib.update(sys.builtin_module_names)
return all_stdlib
If a module is undocumented, feel free to strike it off (#1019 (comment)).
Filtered list:
ctypes.macholib(undocumented, vendored macholib)ctypes.macholib.dyld(undocumented, vendored macholib)ctypes.macholib.dylib(undocumented, vendored macholib)ctypes.macholib.framework(undocumented, vendored macholib)curses.has_key(stubs use_curses.has_key)email.base64mime(undocumented)email.quoprimime(undocumented)json.scanner(undocumented, implementation detail)multiprocessing.forkserver(concept documented, but neither module nor class)multiprocessing.heap(undocumented, multiprocessing utility)multiprocessing.popen_fork(undocumented, multiprocessing utility)multiprocessing.popen_forkserver(undocumented, multiprocessing utility)multiprocessing.popen_spawn_posix(undocumented, multiprocessing utility)multiprocessing.popen_spawn_win32(undocumented, multiprocessing utility)multiprocessing.reduction(undocumented, multiprocessing utility)multiprocessing.resource_sharer(undocumented, multiprocessing utility)multiprocessing.resource_tracker(undocumented, multiprocessing utility)multiprocessing.util(undocumented, multiprocessing utility)sqlite3.dump(undocumented, sqlite3 utility)xml.dom)xml.dom.expatbuilder(undocumented, see also Missing standard library xml #3787)xml.dom.minicompat(undocumented, implementation detail)xml.dom.xmlbuilder(undocumented)xml.sax.expatreader(undocumented)Full list:
Details
In particular, the xml modules have actually been requested (#3787) so that's probably where one should start.
(edit: dumping the code for finding stdlib modules here, since it's not straightforward and I find I've needed it a couple times. for finding typeshed stdlib modules, look at stubtest)
Details