| Store | Cart

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

From: Denis S. Otkidach <o...@strana.ru>
Tue, 9 Mar 2004 13:50:43 +0300 (MSK)
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
Aahz Mar 08, 2004 08:24 pm
John Roth Mar 09, 2004 01:04 am
Aahz Mar 10, 2004 10:49 am
John Roth Mar 10, 2004 01:04 pm
Stephen Horne Mar 10, 2004 04:44 pm
John Roth Mar 10, 2004 06:14 pm
Stephen Horne Mar 09, 2004 01:09 am
Mike Mar 09, 2004 03:39 am
Josiah Carlson Mar 09, 2004 06:34 am
Sean Ross Mar 09, 2004 06:13 pm
Paul Rubin Mar 09, 2004 10:44 pm
Josiah Carlson Mar 10, 2004 04:20 am
Andrew Clover Mar 10, 2004 01:18 pm
Sean Ross Mar 10, 2004 03:11 pm
Josiah Carlson Mar 12, 2004 07:06 am
Thomas Heller Mar 09, 2004 07:41 am
Andrew Clover Mar 09, 2004 10:12 am
Denis S. Otkidach Mar 09, 2004 10:50 am
Gerrit Mar 10, 2004 11:41 am
Anders J. Munch Mar 10, 2004 02:46 pm
Dieter Maurer Mar 11, 2004 10:29 pm
Geoff Howland Mar 14, 2004 12:50 am
Andrew Clover Mar 15, 2004 09:52 am
Aahz Mar 10, 2004 11:01 am
John Roth Mar 10, 2004 01:13 pm
Messages in this thread