On 7/31/2014 3:19 PM, Mark Lawrence wrote:
On 31/07/2014 19:55, Akira Li wrote:
Steven D'Aprano <st...@pearwood.info> writes:

I'm looking for a programmatic way to get a list of all Python modules
and packages. Not just those already imported, but all those which
*could* be imported.
...
Is this problem already solved? Can anyone make any suggestions?

Look at how `help('modules')` is implemented. Though it crashes on my
system.


Have you reported this at bugs.python.org or is there already an issue
for the problem that you see?

I strongly suspect this issue:
http://bugs.python.org/issue12902
help('modules') imports all modules, and crashes if any import crashes the system.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to