unload/delete modules

Abel Daniel abli at freemail.hu
Fri Feb 14 21:30:07 CET 2003

Sebastien de Menten (sdementen at hotmail.com) wrote:
> ... any thoughts
Well, if you  only need to re-create that module a couple of times,
i guess you could try to make it with a new name each time. like 

module_name='do_stuff' + str(time())
make_module_with_name(..other args... , module_name )
exec('import %s as do_stuff' % module_name)

OTOH, as far as I can tell from lurking around here, the canonical
answer to 'have a lot of matrix-like number-crunching to do in python'
question is Numeric or Numarray.


More information about the Python-list mailing list