Antoine Pitrou <pit...@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 <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