On Thu, Sep 24, 2009 at 2:51 PM, Ethan Furman <et...@stoneleaf.us> wrote:

> I believe that modules are imported only once
>

That's *mostly* true, but try this one:

A.py:
print 'Importing A'
import B

B.py:
print 'Importing B'
import A

Cashew:/tmp$ python2.5 B.py
Importing B
Importing A
Importing B

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to