title: reloading module which has been imported to another module
body: <p>Let's face it, the whole business of reloading python code after changing it is a mess.  I figured out awhile back that calling <code>import &lt;module&gt;</code> at the interpreter is better than <code>from &lt;module&gt; import &lt;class/function&gt;</code>, because then I can call <code>reload(module)</code> to get updated code.</p>
  
  <p>But I have more complicated issues now.  So I have this file, module1.py, and at the top it says:</p>
  
  <pre><code>from module2 import &lt;class1&gt;, &lt;function1&gt;, etc.
  </code></pre>
  
  <p>And then I go and change code inside module2.  Turns out that calling <code>reload(module1)</code> will not reload the code changed in module2, even though code from module2 is imported at the top of module1.  Is there any way to reload everything without restarting the interpreter?</p>
  
  <p>Before anyone gets on my case about style, I'll just say that:</p>
  
  <ol>
  <li>I only call <code>reload</code> from the interpreter, never in active code.  This question concerns when I'm testing new code.</li>
  <li>I never call from <code>&lt;module&gt; import *</code>, I know that destroys readability</li>
  </ol>