22 Apr
2007
22 Apr
'07
7:26 p.m.
On 4/22/07, Steven Bethard
On 4/22/07, Christian Heimes
wrote:
I'm proposing the following changes:
* sys.main is added which contains the dotted name of the main script. This allows code like:
if __name__ == sys.main:
Note that this really requires the code::
import sys if __name__ == sys.main:
As long as we're in python-ideas, I'll throw out the radical suggestion of auto-importing sys into builtins, the way os autoimports path. -jJ