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]
Recent Messages in this Thread | ||
---|---|---|