A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/041098.html below:

[Python-Dev] Re: Relative import

[Python-Dev] Re: Relative import [Python-Dev] Re: Relative importDavid 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4