[Python-Dev] Relative import (original) (raw)

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