[Python-Dev] PEP 328: import...as with relative import (original) (raw)

Greg Ewing greg at cosc.canterbury.ac.nz
Thu May 6 02:06:28 EDT 2004


There's been some discussion on c.l.py about whether the new relative import system should allow things like

import ..abc as def

It seems the PEP currently disallows this, but nobody seems to be able to adequately explain why. Is there any technical reason it couldn't be done?

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