[Python-Dev] Re: Relative import

David Eppstein eppstein at ics.uci.edu
Tue Dec 16 22:07:52 EST 2003

In article <200312170022.hBH0Mne16539 at oma.cosc.canterbury.ac.nz>,
 Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:

> So I think we really want *three* kinds of module reference:
>    A: Explicitly absolute
>    B: Explicitly relative to the current module
>    C: Searched for upwards in the package hierarchy from the current
>       module
> (Note that C is a generalisation of the current "ambiguous"
> references which only look in two places.)
> Suggested syntaxes for these:
>   A:   a.b.c.          Path ends with a dot
>   B:   .a.b.c          Path begins with a dot
>   C:   a               Path neither begins nor ends with a dot
>        a.b.c

Is funny punctuation really the right way to spell an important 
distinction like this?

David Eppstein                      http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science

More information about the Python-Dev mailing list