Author benjamin.peterson
Recipients benjamin.peterson
Date 2008-05-04.00:36:16
SpamBayes Score 0.0490886
Marked as misclassified No
Message-id <1209861378.3.0.693402002548.issue2751@psf.upfronthosting.co.za>
In-reply-to
Content
If I have a package like this:

pack/
    __init__.py

and __init__.py looks like this
if __name__ == "__main__":
    print "Spam"

python -m pack gives
one is a package and cannot be directly executed

This is regression from 2.5 where "Spam" would be printed.
History
Date User Action Args
2008-05-04 00:36:18benjamin.petersonsetspambayes_score: 0.0490886 -> 0.0490886
recipients: + benjamin.peterson
2008-05-04 00:36:18benjamin.petersonsetspambayes_score: 0.0490886 -> 0.0490886
messageid: <1209861378.3.0.693402002548.issue2751@psf.upfronthosting.co.za>
2008-05-04 00:36:17benjamin.petersonlinkissue2751 messages
2008-05-04 00:36:16benjamin.petersoncreate