[Python-Dev] PEP 328: import...as with relative import (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Sun May 9 21:03:29 EDT 2004
- Previous message: [Python-Dev] PEP 328: import...as with relative import
- Next message: [Python-Dev] PEP 328: import...as with relative import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan <ncoghlan at iinet.net.au>:
The other point in favour of the current way is that a bare import statement is always absolute, which further encourages absolute imports as the standard approach.
I don't understand why absolute imports should be regarded as the "standard approach". Absolute imports are appropriate for some things, relative imports are appropriate for other things. You can't say that one is "standard" and the other isn't.
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 328: import...as with relative import
- Next message: [Python-Dev] PEP 328: import...as with relative import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]