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 shows tools/scripts but blows up
Type: Stage:
Components: Demos and Tools Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, scott_daniels
Priority: normal Keywords:

Created on 2002-10-17 21:17 by scott_daniels, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg12826 - (view) Author: Scott David Daniels (scott_daniels) * Date: 2002-10-17 21:17
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.
msg12827 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-08-09 17:32
Logged In: YES 
user_id=11375

Fixed by committing patch #1005491 ; thanks for your bug report!
History
Date User Action Args
2022-04-10 16:05:46adminsetgithub: 37337
2002-10-17 21:17:59scott_danielscreate