compiling to python byte codes

Leif K-Brooks eurleif at ecritters.biz
Thu Sep 2 23:56:07 EDT 2004


Jason Lai wrote:
[talking about compiling some language besides Python to Python bytecode]
> What about generating an Abstract Syntax Tree (compiler.ast) and using 
> the compiler module (compiler.pycodegen) to write the bytecode?

That would certainly be possible, but it seems to me like it might be 
easier to generate Python code. You're using Python logic if you use its 
AST, after all.



More information about the Python-list mailing list