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 benjhayden
Recipients benjhayden
Date 2007-12-03.16:34:07
SpamBayes Score 0.018113904
Marked as misclassified No
Message-id <>
Instead of listing installed modules, help('modules') prints a "please
wait" message, then a traceback noting that a module raised an exception
during import, then nothing else.
This happens in 2.5 and 2.6a0, but not in 2.4, which apparently doesn't
__import__() EVERY module.
Tested only on Gentoo Linux 2.6.19, but same behavior is probable on
other platforms because pydoc and pkgutil are written in cross-platform

Prominent 3rd party libraries that break help('modules') include Django,
Pyglet, wxPython, SymPy, and Pypy. Arguably, the bug is in those
libraries, but they have good reasons for their behavior. Also, the Unix
philosophy of forgiving input is a good one. Also, __import__()ing every
module takes a significant run-time hit, especially if libraries compute
eg. configuration.

The patch utilizes a pre-existing hook in pkgutil to simply quietly add
the module to the output. (Long live lambda.)
File name Uploaded
pydocbug.patch benjhayden, 2007-12-03.16:34:07
Date User Action Args
2007-12-03 16:34:09benjhaydensetspambayes_score: 0.0181139 -> 0.018113904
recipients: + benjhayden
2007-12-03 16:34:09benjhaydensetspambayes_score: 0.0181139 -> 0.0181139
messageid: <>
2007-12-03 16:34:09benjhaydenlinkissue1550 messages
2007-12-03 16:34:07benjhaydencreate