No matter reload, del, import again, or autoreload, The function can be referred by two names, the old one works same as the new name.
To be clear, this is my codes:
#my_module.py
#...
#def waitting_user(): #This is the old name
#...
def waiting_user(): #this is new
#... see, I change the function name.
Then I can use both my_moudle.waitting_user() and my_moudle.waiting_user in the ipython console, they do the same. The old name become a ghost name, it will stay with the running ipy. interpreter. Any way to delete it when it happen?
delthe name you don’t want. i.e.,del my_module.waiting_user