Is there any way to remove an imported library?
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> dir()
['__builtins__', '__doc__', '__name__', '__package__']
(Currently imported packages)>>> import time
>>> dir()
['__builtins__', '__doc__', '__name__', '__package__', 'time']
New module, "time". If you wanted to "un-import" a library, how would you do it?
Something like
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> dir()
['__builtins__', '__doc__', '__name__', '__package__']
(Currently imported packages)>>> import time
>>> dir()
['__builtins__', '__doc__', '__name__', '__package__', 'time']
(New library time)>>> un-import(time)
(For an example command, anything like this?)>>> dir()
['__builtins__', '__doc__', '__name__', '__package__']
(Library "time" removed)