Is it possible to load python module from memory?For example, I can read python .pyc file into memory, preprocess it ( decrypt :-) ), and then import it. Is it possible?
Sure. Frozen modules are exactly that; see Tools/freeze in the source tree.If you want to do some preprocessing, read PEP 302 and implement the importer protocol.
-- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
