[Python-ideas] PEP for executing a module in a package containing relative imports

Josiah Carlson jcarlson at uci.edu
Sat Apr 21 23:09:23 CEST 2007


After reading other posts in the thread, I'm going to put my support
into the sys.main variant.  It has all of the benefits of the builtin __name__
== __main__, with none of the drawbacks (no builtin!), and only a slight
annoyance of 'import sys', which is more or less free.


 - Josiah




More information about the Python-ideas mailing list