I discovered this in a more complex set of code, but I've boiled the issue down to two very simple scripts:
from helper import helpfunc
print helpfunc(6)
and
def helpfunc(val):
return 2*val
All goes fine the first time I run mainprog.py and the output is 12, but if I change the "2" to a "3" in the helper.py script, then when I run the mainprog.py script, the output is still 12.
The only way I can get mainprog.py to pick up the changes in helper.py is to force quit pythonista.
Am I missing something?