Bug with help (was Re: Getting a list of all modules)

Akira Li 4kir4.1i at gmail.com
Fri Aug 1 22:17:52 EDT 2014


Mark Lawrence <breamoreboy at yahoo.co.uk> writes:

> On 31/07/2014 19:55, Akira Li wrote:
>> Steven D'Aprano <steve at 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?

It is this issue for python2.7:

https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836

python3 doesn't crash with currently installed packages.


--
Akira




More information about the Python-list mailing list