[Python-ideas] Just __main__

Simon Sapin simon.sapin at kozea.fr
Tue Jun 19 11:41:03 CEST 2012

Le 19/06/2012 09:52, anatoly techtonik a écrit :
> Here is one more problem - when module is executed as a script, it
> loses its __name__, which becomes equal to '__main__'.

PEP 395 "Qualified Names for Modules" tries to address this.


Simon Sapin

More information about the Python-ideas mailing list