[ python-Bugs-1189811 ] pydoc may hide non-private doc strings.

SourceForge.net noreply at sourceforge.net
Mon Apr 25 23:00:42 CEST 2005


Bugs item #1189811, was opened at 2005-04-25 16:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1189811&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: J Livingston (jlivingston)
Assigned to: Nobody/Anonymous (nobody)
Summary: pydoc may hide non-private doc strings.

Initial Comment:
I am using Python version 2.3.4, pydoc version 1.86.8.1 
on WinXP SP2.

pydoc's visiblename() method indicates "Private names 
are hidden, but special names are displayed". However, 
visiblename's private name qualifier seems to be 
(name.startswith('_')) while Python's private name 
qualifier is something more along the lines of 
((name.startswith('__') and ((name[-1] != '_') or ((name[-1] 
== '_') and (name[-2] != '_')))).

Having said that, it would be useful if a command line 
switch enabled documentation for private names. This 
would be helpful in a development environment...


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

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


More information about the Python-bugs-list mailing list