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.

Author pitrou
Recipients Jim_C, georg.brandl, pitrou
Date 2008-12-15.23:50:32
SpamBayes Score 0.00018659135
Marked as misclassified No
Message-id <1229385033.45.0.378588186257.issue4671@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2008-12-15 23:50:33pitrousetrecipients: + pitrou, georg.brandl, Jim_C
2008-12-15 23:50:33pitrousetmessageid: <1229385033.45.0.378588186257.issue4671@psf.upfronthosting.co.za>
2008-12-15 23:50:32pitroulinkissue4671 messages
2008-12-15 23:50:32pitroucreate