Debugging Modules/Packages
Brian Olsen
brian0891 at yahoo.com
Thu Mar 27 15:33:08 EST 2003
Hello,
Is there a way to make changes to modules and packages while the
module or package is still in memory? I tried to do something like
this:
import sys
try:
del sys.modules["myPackage.whatever"]
except KeyError:
del sys.modules["myPackage"]
This will allow me to make changes to modules, because Python has to
constantly re-import the specified packages, but I am wondering if
there is a better way to doing this.
Thank you.
Brian Olsen
More information about the Python-list
mailing list