unimport library python

Solutions on MaxInterview for unimport library python by the best coders in the world

showing results for - "unimport library python"
Brigid
22 May 2019
1# Import your library
2import time
3
4# Remove your library (change as needed)
5# You'll lose access to it
6# Python will still keep a copy around in the cache though
7del time
8# If you want to reload it (> Python 3.4):
9import importlib, time
10importlib.reload(time)