Can a module be imported and then disposed of later to recover memory (assuming you ensure nothing has a reference to it) ?
Is it impossible, does it have to be forced, or is it simply a by-product of garbage collection following del(sys.modules['mymodule']) and assuming nothing else retains the reference?
My use case is where I have a series of tests with coverage of lots of different modules which I would like to run in sequence, but loading all the modules simultaneously is impossible given the limitations of the platform.