[issue4671] pydoc executes the code to be documented

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Documented in r67963. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue4671] pydoc executes the code to be documented

2008-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's why you shouldn't put code with side effects at the root of a module, but inside a "if __name__ == '__main__'" guard. Anyway, it may be worth documenting it! -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl, pitrou ve

[issue4671] pydoc executes the code to be documented

2008-12-15 Thread Jim_C
New submission from Jim_C : Running pydoc [ pydoc ] on a python module using Tkinter displayed the window defined in the module - not what I was expecting.. Running pydoc on from os import remove sFile='tmp.tmp' remove(sFile) will remove the file tmp.tmp, if it exists. If this behaviour i