0

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?

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Abijah
  • 512
  • 4
  • 17
  • Does [How do I unload (reload) a Python module?](https://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module) answer your question? – Abdul Aziz Barkat Jan 16 '21 at 09:47
  • It looks like it might; PYcharm is updating, I'll check it later this morning. – Abijah Jan 16 '21 at 10:06

0 Answers0