In my app distributed over several module files I have come cross a strange behavior. It seems to me as though sub modules which are used by main modules are not updated automatically. Instead the old public interface remains visible to the main modules until the Pythonista app is closed and reopened. Is there a way to avoid this since this is a little annoying? I often start looking for declaration errors which are due to the outdated sub modules.
The quickest way to reproduce this behavior is using modules "a" and "b":
module a:
def a():
return "a"
module b:
import a
print a.a()
Start b for the first time. It will work and print "a". Then change modules "a" and "b" to:
module "a"
def a1():
return "a"
module b:
import a
print a.a1()
Start module "b" again. It will say that the name "a1" is not known. Then close the app, reopen and restart module "b".