Recompile AST?

chrisspen at gmail.com chrisspen at gmail.com
Thu Nov 10 16:21:56 EST 2005


Is it possible to recompile the AST generated by compiler.parse, back
into code or an executable code object? My aim here is to allow a
script to manipulate Python code as elements within a list. However, it
doesn't look like the module has any native methods designed to do
this.

Chris




More information about the Python-list mailing list