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 steve.dower
Recipients christian.heimes, paul.moore, steve.dower, tds333, tim.golden, zach.ware
Date 2016-09-15.15:18:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473952690.44.0.833592015596.issue28137@psf.upfronthosting.co.za>
In-reply-to
Content
I like it. Making the name match the exe name should have been obvious, and if nobody is opposed to simply aborting on unsupported syntax (i.e. imports other than site) I don't actually mind making it .pth.

It's a separate idea, but what if the presence of a __main__.py file caused that file to always run and every argument gets passed to that instead? The purposes seem separate enough to use two files. And we could implement that part easily enough in PC/WinMain.c, as Paul suggests.

Both of these options are fairly aggressive wrt other command line options (i.e. how do you specify unbuffered IO? how do you set the hash seed?), but the point is really that you wouldn't use them with these options - if you don't want to build your own main() function, the defaults should be good enough.
History
Date User Action Args
2016-09-15 15:18:10steve.dowersetrecipients: + steve.dower, paul.moore, tds333, christian.heimes, tim.golden, zach.ware
2016-09-15 15:18:10steve.dowersetmessageid: <1473952690.44.0.833592015596.issue28137@psf.upfronthosting.co.za>
2016-09-15 15:18:10steve.dowerlinkissue28137 messages
2016-09-15 15:18:10steve.dowercreate