Lament: Import is not very smart.

Lonnie Princehouse finite.automaton at gmail.com
Thu Jul 15 11:13:16 EDT 2004


> you mean we should always have to say "import foo.bar.baz", even when
> I'm in 'foo.bar'?

PEP 328 clarifies relative/absolute imports.  It should be available
in the 2.4a release via "from __future__ import absolute_import"

(http://www.python.org/peps/pep-0328.html)



More information about the Python-list mailing list