[ python-Bugs-624893 ] pydoc shows tools/scripts but blows up
SourceForge.net
noreply at sourceforge.net
Mon Aug 9 19:32:48 CEST 2004
Bugs item #624893, was opened at 2002-10-17 17:17
Message generated for change (Settings changed) made by akuchling
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Scott David Daniels (scott_daniels)
>Assigned to: A.M. Kuchling (akuchling)
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.
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2004-08-09 13:32
Message:
Logged In: YES
user_id=11375
Fixed by committing patch #1005491 ; thanks for your bug report!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=624893&group_id=5470
More information about the Python-bugs-list
mailing list