[Python-Dev] Relative import (original) (raw)
Tim Peters tim.one at comcast.net
Thu Dec 18 00:38:57 EST 2003
- Previous message: [Python-Dev] Relative import
- Next message: [Python-Dev] Re: Relative import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Guido]
... (Note that this leading-dot algorithm is nearly the same as the old MacOS pathname syntax, except they did it with colons: :foo was foo in the current directory, ::foo was foo in the parent directory, etc., and foo:bar was an absolute pathname. The only difference is that for backwards compatibility reasons they interpreted no colons as relative to the current directory rather than absolute.)
More relevant to most of the world is that it's even more similar to the pathname syntax in the Win9x/ME command.com shells:
C:\Code\python\PCbuild>cd ...\Zope
C:\Code\Zope>
I expect that basing Python syntax on obsolete, hated OSes is a smart contrarian move >
- Previous message: [Python-Dev] Relative import
- Next message: [Python-Dev] Re: Relative import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]