title: Python: reload component Y imported with 'from X import Y'?
body: <p>In Python, once I have imported a module X in an interpreter session using <code>import X</code>, and the module changes on the outside, I can reload the module with <code>reload(X)</code>. The changes then become available in my interpreter session.</p>
  
  <p>I am wondering if this also possible when I import a component Y from module X using <code>from X import Y</code>.</p>
  
  <p>The statement <code>reload Y</code> does not work, since Y is not a module itself, but only a component (in this case a class) inside of a module.</p>
  
  <p>Is it possible at all to reload individual components of a module without leaving the interpreter session (or importing the entire module)?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>For clarification, the question is about importing a <strong>class or function Y</strong> from a <strong>module X</strong> and reloading on a change, not a module Y from a package X.</p>