[Python-Dev] Relative import
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed Dec 17 17:36:36 EST 2003
Nick Coghlan <ncoghlan at iinet.net.au>:
> A: from __absolute__.dotted.name import foo
> B: from __relative__.dotted.name import bar
> C: from __heirarchy__.dotted.name import foobar
> D: from dotted.name import barfoo
>
> Then Guido's migration plan would apply to the progression of the D
> semantics from the Python 2.3 model to being a shorthand for the
> absolute semantics.
>
> And once _that_ has happened, then we could get rid of the
> '__absolute__' version in the name of TOOWTDI.
That's where I disagree - I think that type C semantics should
be the default/least ugly/easiest to get, not type A.
But I wouldn't like any of the others to be as ugly as those,
either.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list