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

Aahz aahz at pythoncraft.com
Mon Apr 23 01:09:26 CEST 2007

On Sat, Apr 21, 2007, Steven Bethard wrote:
> Note that the one benefit the sys.main-only variant doesn't have is
> the lower cognitive load of just having to know about __main__,
> instead of having to know about __name__, import and sys.main.

>From my POV that is indeed a lower cognitive load because all I need to
remember is to look in the docs for the sys module -- everything else is
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...string iteration isn't about treating strings as sequences of strings, 
it's about treating strings as sequences of characters.  The fact that
characters are also strings is the reason we have problems, but characters 
are strings for other good reasons."  --Aahz

More information about the Python-ideas mailing list