[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
- Previous message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Next message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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/)
- Previous message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Next message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]