Reloading a module

Tom bondpaper at earthlink.net
Mon Sep 30 21:11:45 EDT 2002


I'm developing some python mini applets on a Mac (using os 9 and the 
2.1.1 Python IDE), and I've found it impossible to delete and/or reload 
a module after making changes to the code during the 
debugging/verification process. Is there an easy and/or effective way to 
do this? If I execute:

del mymodule

and then execute a print dir(mymodule), it shows up as nonexistent. 
Then, when I execute:

import mymodule

followed by a print dir(mymodule), the changes do not show up. 


Thanks for the help.

Tom



More information about the Python-list mailing list