[Python-Dev] Re: Relative import

Terry Reedy tjreedy at udel.edu
Mon Dec 22 12:29:47 EST 2003


"Troy Melhase" <troy at gci.net> wrote in message
news:200312220003.08810.troy at gci.net...
> My humble suggestion:
>
> import NAMES
> import NAMES in MODULE [in HOW]
> import NAME, OTHER in FOO in RELATIVE
> import NAME as RENAME in MODULE in ABSOLUTE

I had same idea of reusing 'in', but with
relative, absolute changed to perhaps RelMode,
AbsMode so as to grammatically flow better.  'in
NAME' could then indicate place in package to
begin search.  'in Package' and 'in Path' are
clearer (more explicit) alternatives to relative
and absolute.

Terry J. Reedy






More information about the Python-Dev mailing list