[Python-Dev] Relative import

Barry Warsaw barry at python.org
Wed Dec 17 21:52:03 EST 2003

On Thu, 2003-12-18 at 07:24, Greg Ewing wrote:

> Thinking about the double_underscore names, it might not
> be so bad if they were a bit shorter, e.g.
>    A: __root__.P.Q
>    B: __here__.P.Q
>       __here__.__parent__.P.Q
>    C: P.Q

I like this, although I'm not so sure about __here__.__parent__.  What I
like about this is the explicitness of where your search starts.


More information about the Python-Dev mailing list