[Python-ideas] Just main (original) (raw)

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.

http://www.python.org/dev/peps/pep-0395/

Regards,

Simon Sapin



More information about the Python-ideas mailing list