New submission from Jim_C <j.con...@physics.org>: Running pydoc [ pydoc <modulename> ] 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 is intentional ( as it appears to be, see imp.load_module ) & presumably integral to the operation of pydoc, then it might be worth providing a warning on the web page ( http://docs.python.org/library/pydoc.html ) ?? Running a code with default arguments in an arbitrary directory could potentially produce unwanted side effects, at the very least.. Regards , Jim_C ---------- messages: 77881 nosy: Jim_C severity: normal status: open title: pydoc executes the code to be documented type: behavior versions: Python 2.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4671> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com