[Python-Dev] Re: Relative import

Anthony Baxter anthony at interlink.com.au
Tue Dec 16 22:27:52 EST 2003


>>> "Delaney, Timothy C (Timothy)" wrote
> > Is funny punctuation really the right way to spell an important 
> > distinction like this?
> 
> That's what I've been wondering. I really don't like the proposal to use
> . in various places to signify relative and absolute imports. It seems 
> non-obvious both in understandability and readability.

I'd have to agree. In the same way that backticks are painful to deal 
with (they're small and non-obvious), the difference between 

  from foo import bar

and 

  from .foo import bar

is too small to be pleasant. I also have to wonder about the use 
case for .. and ... - looking through my code, I can't see anything
where using ... rather than a fully qualified name would make the 
code any more readable.

-- 
Anthony Baxter     <anthony at interlink.com.au>   
It's never too late to have a happy childhood.




More information about the Python-Dev mailing list