importing dynamic files, unimporting

Alex McHale daimun at home.com
Tue Oct 17 22:54:07 EDT 2000


Hi there,
  I was just wondering if there is a way to import a module where the module
name is dynamic (basically contained in a string).  The idea is that the
module will contain specific functions (ie def foobar( arg1, arg2 ) in all
such modules).
  The second part is removing these imports.  Is there a way to 'unimport' a
module?  The python website seems to be very lacking on such topics.

  Daimun
  daimun at home.com





More information about the Python-list mailing list