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

Guido van Rossum guido at python.org
Sat Apr 3 11:58:51 EST 2004


> 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.)

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list