I m working with the interactive console in eclipse, and reload does not show updated functions in my code. My code was :
def func1():
return 1
def func2():
return 2
but when I changed it to
def afunc1():
return 1
def func2():
return 2
def func1():
return 3
and ran imp.reload(TestMod), I got a module object has no attribute afunc1()
.
Also, sometimes the functions are loaded and sometimes they are not.