Message276563
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. |
|
Date |
User |
Action |
Args |
2016-09-15 15:18:10 | steve.dower | set | recipients:
+ steve.dower, paul.moore, tds333, christian.heimes, tim.golden, zach.ware |
2016-09-15 15:18:10 | steve.dower | set | messageid: <1473952690.44.0.833592015596.issue28137@psf.upfronthosting.co.za> |
2016-09-15 15:18:10 | steve.dower | link | issue28137 messages |
2016-09-15 15:18:10 | steve.dower | create | |
|