howto load and unload a module

Guy Robinson guy at NOSPAM.r-e-d.co.nz
Fri Jun 24 07:20:11 EDT 2005


Hello,

I have a directory of python scripts that all (should) contain a number of 
attributes and methods of the same name.

I need to import each module, test for these items and unload the module. I have 
2 questions.

1.. How do unload an imported module?
2.. how do I test for the existance of a method in a module without running it?

TIA,

Guy



More information about the Python-list mailing list