Just had the question pop into my mind.
Currently I code programs that are small and don't run for very long. But soon I'm looking to create programs that will run concurrently throughout the day. Perhaps in this program a module will be used initially, but then not be needed for vast portions of the day. Therefore, is it possible to unimport a module?
Upon searching I couldn't seem to find a 'yes' answer, so do I presume correctly that it's not actually possible in Python, even at the current time of writing?
The only function I know of deletes the reference, but not the actual import:
import module
module.X()
del module
module.X()
_
Output: #NameError, can't find `module`