loading a Module from a Code object
Tracy Lee Hansen
hansen at fsl.noaa.gov
Tue Dec 21 17:26:11 EST 1999
Given a text string of Python code, I am making a code object as
follows:
result = code.compile_command(text)
How can I load/create a module using this code object?
In other words, I am storing text strings of Python code and do not want
to store them in a file.
Also, I need to examine the module.__dict__ to pick out methods and
variables.
Thanks!
Tracy
More information about the Python-list
mailing list