<div class="gmail_quote">On Thu, Sep 24, 2009 at 2:51 PM, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div>I believe that modules are imported only once<br></div></blockquote><div><br>That's *mostly* true, but try this one:<br><br>A.py:<br>print 'Importing A'<br>import B<br><br>B.py:<br>print 'Importing B'<br>
import A<br><br>Cashew:/tmp$ python2.5 B.py<br>Importing B<br>Importing A<br>Importing B<br></div></div><blockquote style="margin: 1.5em 0pt;">--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>