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

Guido van Rossum guido at python.org
Sun May 9 23:56:04 EDT 2004


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.

Maybe, but somewhere "underneath" all imports are converted to absolute imports before they are carried out. This is an important normalization since every module ought to have exactly one true name, and that must be its absolute name.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list