"Pawlowsky, Marc" wrote:
> 
> When I am using PythonWin, and I change the code for a module other than the
> 
> one that I running, the changes are not in effect until I close the
> PythonWin and restart
> it again.
> 
> Is there a way to have the changed module recompiled and loaded?

PythonWin's debugger uses the same environment as PythonWin itself. That
means that a few details can leak from one run of your program to
another. In this case, Python's "module caching" is causing the
function.

Python's reload() function can force a reload of a method from disk. You
could add some reload instructions to your file to force a reload with
every run. You can also manually invoke the reload function from the
PythonWin interpreter command line:

import foo
reload(foo)

Hope that helps.

 Paul Prescod
 ActiveState Tool Corp.
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to