[Python-Dev] Relative vs. absolute imports (original) (raw)
Barry Warsaw barry at python.org
Mon May 17 21:36:31 EDT 2004
- Previous message: [Python-Dev] Relative vs. absolute imports
- Next message: [Python-Dev] Relative vs. absolute imports
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 2004-05-17 at 18:36, M.-A. Lemburg wrote:
I still don't believe that we need to break code in order to introduce relative imports, though, certainly not before Py3k.
One to to "fix" this in a backward compatible way is to instead introduce a spelling for "really, import this absolutely", e.g.
from python import re
or
import python.re
and leave the current import semantics alone, for Python 2.x. I know Guido's not in favor of this approach though.
-Barry
- Previous message: [Python-Dev] Relative vs. absolute imports
- Next message: [Python-Dev] Relative vs. absolute imports
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]