How to unload a module after I've imported it.

marvinla marvinware2005 at gmail.com
Sat Sep 29 22:32:15 CEST 2007


Have you tried a del?

>> import socket
>> dir()
['__builtins__', '__doc__', '__name__', 'socket']
>> del socket
>> dir()
['__builtins__', '__doc__', '__name__']

See you!




More information about the Python-list mailing list