homepage

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 benjamin.peterson
Recipients benjamin.peterson
Date 2008年05月04日.00:36:16
SpamBayes Score 0.049088642
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.049088642
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

AltStyle によって変換されたページ (->オリジナル) /