En Thu, 10 Dec 2009 12:13:15 -0300, scream...@gmail.com <scream...@gmail.com> escribió:

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

Reply via email to