[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
- Previous message: [Python-Dev] PEP 289 - Generator Expressions - Let's Move Forward
- Next message: [Python-Dev] PEP 328: import...as with relative import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 +--------------------------------------+
- Previous message: [Python-Dev] PEP 289 - Generator Expressions - Let's Move Forward
- Next message: [Python-Dev] PEP 328: import...as with relative import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]