title: update module on import to python interpreter
body: <p><strong>In short</strong></p>
  
  <p>How to force python interpreter to load the most up-to-date code version of my module everytime I make some changes in the module code?</p>
  
  <p>Or at least reload the last modified version by typing </p>
  
  <pre><code>&gt;&gt;&gt; from myModule import *
  </code></pre>
  
  <p>into console, without necessity to restart whole python console and setup everything again and again anytime I make some changes? This is extremely unpleasant behavior for debugging.</p>
  
  <p><strong>--------- LONGER STORY -----------</strong></p>
  
  <p>I <strong>tried to delete the .pyc file</strong>, and import it again - but it has no effect. It does't even create .pyc file again - so I expect it completely ignore my "import" command if the module is already loaded. </p>
  
  <p>this also does not help:</p>
  
  <pre><code>&gt;&gt;&gt; mymodule.myfunc()    # the old version
  &gt;&gt;&gt; del myModule         # unload mymodle from python conole / interpeter
  ...                  # now I removed .pyc
  ...                  # now I make some modifications in mymodule.myfunc() code   
  &gt;&gt;&gt; mymodule.myfunc()    # module is unknonwn, ... OK
  &gt;&gt;&gt; import myModule      # try to load modified version
  &gt;&gt;&gt; mymodule.myfunc()    # stil the old version :(((((, How it can remember?
  </code></pre>
  
  <p>I have tried also Spyder where is this feature called <strong>"User Module Deleter (UMD)"</strong>
  <a href="http://pythonhosted.org/spyder/console.html#reloading-modules-the-user-module-deleter-umd" rel="noreferrer">http://pythonhosted.org/spyder/console.html#reloading-modules-the-user-module-deleter-umd</a>
  which I thought should do exactly this, but it seem it doesn't (Yes, I checked that it is turned on). </p>
  
  <p>Maybe I'm missing something - can somebody explain me how is it supposed to be used?</p>
  
  <p>Is this somehow affected by the fact that the imported module is not in "Working directory" but in PYTHONPATH ?</p>