[Python-bugs-list] [ python-Bugs-624893 ] pydoc shows tools/scripts but blows up
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 17 Oct 2002 14:17:59 -0700
Bugs item #624893, was opened at 2002-10-17 21:17
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=624893&group_id=5470
Category: Demos and Tools
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Scott David Daniels (scott_daniels)
Assigned to: Nobody/Anonymous (nobody)
Summary: pydoc shows tools/scripts but blows up
Initial Comment:
pydoc (at least on win32 2.2.2) offers the
tools/scripts files, but it blows up on several that are
not prepared to be used as modules (including, I
think, pydocgui, which may well be a special case). I
suggest changing the scripts to use the
"if __name__ == '__main__':"
magic on those that blow up.
Sorry I don't have a full list at the moment, I'll
remedy that this weekend.
Less vital, but still desirable, would be to do the
same for those scripts, like byteyears, that perform
some action and simply yield an error message.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=624893&group_id=5470