Does this code, or similar, allow for 'something' to be picked up by garbage collection after it has been dereferenced?
import something as this
if condition:
import somethingelse as this
I want to import different modules to replace others to the same alias depending on conditions, and not take up loads of memory with all the modules being 'loaded' at the same time
Thanks