Peter Otten wrote:

> If there are two modules 'foo', one at the toplevel and the other inside a
> package 'bar',
> 
> from __future__ import absolute_import
> import foo
> 
> will import the toplevel module whereas
> 
> import foo
> 
> will import bar.foo. 

... provided these imports are performed from modules within 'bar'.

Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to