[Python-Dev] Re: PEP 328 -- relative and multi-line import (original) (raw)
Guido van Rossum guido at python.org
Sat Apr 3 11:56:52 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 ]
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
Yes.
I think the PEP needs a clear statement (and examples) of which syntax and semantics have been chosen.
Ah, I haven't had the time to read the PEP carefully. Apparently it can use a better specification (like so many PEPs these days... :-( ).
Don't wait for me; it's clear that someone needs to do some more work on this (if just to spell out what seems obvious).
--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 ]