[Python-ideas] PEP for executing a module in a package containing relative imports (original) (raw)
Steven Bethard steven.bethard at gmail.com
Mon Apr 23 03:28:19 CEST 2007
- Previous message: [Python-ideas] PEP for executing a module in a package containing relative imports
- Next message: [Python-ideas] PEP for executing a module in a package containing relative imports
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
STeVe
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
- Previous message: [Python-ideas] PEP for executing a module in a package containing relative imports
- Next message: [Python-ideas] PEP for executing a module in a package containing relative imports
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]