A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/043981.html below:

[Python-Dev] Re: PEP 328 -- relative and multi-line import

[Python-Dev] Re: PEP 328 -- relative and multi-line import [Python-Dev] Re: PEP 328 -- relative and multi-line importDavid Abrahams dave at boost-consulting.com
Sat Apr 3 09:57:50 EST 2004
David Goodger <goodger at python.org> writes:

> Guido van Rossum wrote:
>  > At least "from . import X" and "from .. import X" are completely
>  > clear and more levels up are not likely to occur in practice...
>
> I have Aahz's revision ready to check in, but I'm unclear on one
> point.  Is the accepted/pronounced relative import syntax dots only,
> or can there be a branch too?  In other words, is the "Y" here
> acceptable (where Y is a sibling to the current module's package)?
>
>      from ..Y import X

Wouldn't that have to be

       from ...Y import X
              ^-------------separator, as in A.B
??

Or was that what you intended, David?

I'm thinking some other syntax is needed to represent upward travel
in the hierarchy, e.g.

       from ^.Y import X
       from -.Y import X

<ducks>

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


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