del sys.modules['my-module']

However if your module imported other modules, they'll still be there.
If there are references to objects your module created, they'll still be there.

A better option IMO is to use imp.find_module and then import.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to