[ python-Bugs-969938 ] pydoc ignores module's __all__ attributes

SourceForge.net noreply at sourceforge.net
Fri Jun 11 00:46:34 EDT 2004


Bugs item #969938, was opened at 2004-06-09 16:45
Message generated for change (Comment added) made by montanaro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=969938&group_id=5470

Category: Demos and Tools
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Skip Montanaro (montanaro)
Summary: pydoc ignores module's __all__ attributes

Initial Comment:
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. ;-)


----------------------------------------------------------------------

>Comment By: Skip Montanaro (montanaro)
Date: 2004-06-10 23:46

Message:
Logged In: YES 
user_id=44345

fixed in 1.92.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=969938&group_id=5470



More information about the Python-bugs-list mailing list