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

Steven Bethard steven.bethard at gmail.com
Mon Apr 23 03:28:19 CEST 2007

On 4/22/07, Aahz <aahz at pythoncraft.com> wrote:
> 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
> there.

As a newbie, you need to remember to lookup at least two things:
__name__ and sys.main.  As compared to having to lookup just __main__.

I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy

More information about the Python-ideas mailing list