Reloading modules into interpreter

jsnyder jsnyder at trelis.com
Sat Aug 11 23:39:06 CEST 2001


Hello, I'm a newbie at Python and the solution to the following seems to
escape me at the moment:

Running from Pythonwin, I am importing a module and then calling its method.
Then I change the module code and run it again, but the old code still runs,
not the new code.  The only way I have been able to get the new code is to
shut down the interpreter, restart it and reimport the module.  Surely there
is an easier way.

TIA,
Joe Snyder






More information about the Python-list mailing list