I am developing a module in Pycharm, so I often have it open as module1.py alongside a file that loads it and calls the functions from it. If one of them is particularly troublesome, I might use the python console where I can call the function and play around with making similar functions.
Periodically I'll want to save module1.py and reload it in the python console. Weirdly when I run the commands:
del module1
import module1
I get the same version that I had previously used.
Why is that? Moreover, how do i save module1.py and then get the new saved version in the console?