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.

classification
Title: pydoc ignores module's __all__ attributes
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: skip.montanaro
Priority: normal Keywords:

Created on 2004-06-09 21:45 by skip.montanaro, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg21105 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-06-09 21:45
The pydoc tool ignores the contents of a module's
__all__ list.  If the programmer has gone to the
trouble of creating __all__ then pydoc should only
generate/display documentation for objects it lists.

The problem can be demonstrated by executing:

    pydoc csv

Scroll down and note that StringIO is described in the
Functions section.  Someone executing "from csv import
*" would not get a StringIO function added to their
namespace.

I've no time to create a patch right this minute, but
if you come up with one, feel free to steal this bug
report from me. ;-)
msg21106 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-06-11 04:46
Logged In: YES 
user_id=44345

fixed in 1.92.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40373
2004-06-09 21:45:29skip.montanarocreate