Martin Panter added the comment: I wrote some code that does something like this for a hacky custom readline completer. See the import_list() method at <https://github.com/vadmium/etc/blob/6ac333f/python/pythonstartup.py#L222>. It looks like I’m using a combination of “sys.builtin_module_names” and pkgutil.iter_modules(), with a whole lot of compatibility and bug workarounds.
---------- nosy: +vadmium _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20506> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com