[issue4671] pydoc executes the code to be documented
Antoine Pitrou
report at bugs.python.org
Tue Dec 16 00:50:33 CET 2008
Antoine Pitrou <pitrou at free.fr> 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
versions: +Python 2.6 -Python 2.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4671>
_______________________________________
More information about the Python-bugs-list
mailing list