[Python-Dev] Relative vs. absolute imports

Guido van Rossum guido at python.org
Mon May 17 23:50:11 EDT 2004


> > Because in the current situation the meaning of an import is
> > ambiguous.
> 
> What exactly is ambiguous about it?

Looking at "import foo" you can't tell whether there's a module foo
expected in the current package or in the top-level module namespace.

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



More information about the Python-Dev mailing list