[Python-Dev] Relative import

Tim Peters tim.one at comcast.net
Thu Dec 18 00:38:57 EST 2003


[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 <wink> 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 <wink>>




More information about the Python-Dev mailing list