PEP 328: Imports: Multi-Line and Absolute/Relative

Denis S. Otkidach ods at strana.ru
Tue Mar 9 05:50:43 EST 2004


On 8 Mar 2004, Aahz wrote:

A>       from __pkg__.__pkg__ import
A>
A>   and ::
A>
A>       from .__parent__.__parent__ import
A>
A>   Many people (Guido included) think these look ugly, but
A> they *are*
A>   clear and explicit.  Overall, more people prefer
A> ``__pkg__`` as the
A>   shorter option.

from -.otherpackage import ... are clear too, but I wonder how
respective __import__() calls will look like.

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]






More information about the Python-list mailing list