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.0181139
Marked as misclassified No
Message-id <1196699649.3.0.798271270482.issue1550@psf.upfronthosting.co.za>
In-reply-to
Content
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
Python.

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.)
Files
File name Uploaded
pydocbug.patch benjhayden, 2007-12-03.16:34:07
History
Date User Action Args
2007-12-03 16:34:09benjhaydensetspambayes_score: 0.0181139 -> 0.0181139
recipients: + benjhayden
2007-12-03 16:34:09benjhaydensetspambayes_score: 0.0181139 -> 0.0181139
messageid: <1196699649.3.0.798271270482.issue1550@psf.upfronthosting.co.za>
2007-12-03 16:34:09benjhaydenlinkissue1550 messages
2007-12-03 16:34:07benjhaydencreate