[Python-Dev] Re: PEP 328 -- relative and multi-line import (original) (raw)

David Abrahams dave at boost-consulting.com
Sat Apr 3 12:02:05 EST 2004


Guido van Rossum <guido at python.org> writes:

> from ..Y import X

Wouldn't that have to be from ...Y import X ^-------------separator, as in A.B NO, NO, NO! Each dot is one uplevel. Exactly like Mac OS 9 paths do with ':'. (Read macpath.py.)

That's a fine convention; I'm familiar with MacOS paths.
The fact that David Goodger and I were both confused might indicate that the proposed syntax might not be as intuitive as you'd like, but I don't think it'll take long to get used to.

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



More information about the Python-Dev mailing list