Assuming I have a gzipped mymodule.py.gz I hoped that python (maybe with some parameters) could import it with:
import mymodule
(I would imagine that when a .py file is not found, then .py.gz is looked for.)
or maybe there is a specific version of import:
gzimport mymodule
I would not want to uncompress the file if possible. I guess, I could just uncompress it (from within python maybe to /tmp) and import it as normal. But I would rather not do that if I do not have to.) Other compression formats would also be of interest.