Following up on this question regarding reloading a module, how do I reload a specific function from a changed module?
pseudo-code:
from foo import b
You can't reload a method from a module but you can load the module again with a new name, say foo2 and say bar = foo2.bar to overwrite the current reference.
Note that if bar has any dependencies on other things in foo or any other side effects, you will get into trouble. So while it works, it only works for the most simple cases.