title: How to reload a module's function in Python?
body: <p>Following up on <a href="https://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module">this question regarding reloading a module</a>, how do I reload a specific function from a changed module?</p>
  
  <p>pseudo-code:</p>
  
  <pre><code>from foo import bar
  
  if foo.py has changed:
      reload bar
  </code></pre>