Brett Cannon added the comment: 1) I would use https://docs.python.org/3/library/importlib.html#importlib.find_loader instead of pkgutil
2) there are a bunch of ways to get a hold of a loader and its hard to document how to use a loader properly since it's low level like __path__ while being crucial for stuff like reloading and loaders predate __spec__ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25372> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com