sys.modules still contains a link to the module.
>>> import six
>>> del six
>>> sys.modules["six"]
<module 'six' from '/usr/lib64/python3.3/site-packages/six.py'>
sys.modules still contains the link. Therefore, I do not think that you can also unload a module in Python 3.3.
Keith source
share