This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients arupchakrav, benjamin.peterson, brett.cannon, martin.panter, pitrou, rhettinger
Date 2014-09-10.05:41:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410327704.56.0.909260126128.issue20506@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-09-10 05:41:44martin.pantersetrecipients: + martin.panter, brett.cannon, rhettinger, pitrou, benjamin.peterson, arupchakrav
2014-09-10 05:41:44martin.pantersetmessageid: <1410327704.56.0.909260126128.issue20506@psf.upfronthosting.co.za>
2014-09-10 05:41:44martin.panterlinkissue20506 messages
2014-09-10 05:41:44martin.pantercreate