Possible Duplicate:
reload (update) a .py file in the interpreter
I test some of my classes from Python in a terminal and I came across this issue.
If I test something and find a bug in a code, when I correct it in any text editor, then I find myself closing the python shell where I did my testing, then removing the .pyc file, and finally reopening the python shell and run the test all over again.
Is there any way for the system to automatically update the code and recompile it if necessary so I don't have to constantly repeat the procedure I just described.
Thank you