I am working on a python project with Canopy, using my own library, which I modify from time to time to change or add functions inside.
At the beginning of myfile.py
I have from my_library import *
but if I change a function in this library and compute again myfile.py
it keep using the previous version of my function.
I tried the reload
function :
import my_library
reload(my_library)
from other_python_file import *
from my_library import *
and it uses my recently changed library.
But if it is :
import my_library
reload(my_library)
from my_library import *
from other_python_file import *
It gives me the result due to the version loaded the first time I launched myfile.py
.
Why is there a different outcome inverting the 3rd and 4th line ?