[Types-sig] Plea for help.
Guido van Rossum
guido@CNRI.Reston.VA.US
Tue, 14 Dec 1999 11:59:27 -0500
> Is there currently any path from high level parse trees to bytecodes?
> E.g. is there a way to get sane parse trees to "render" themselves as,
> er, insane parse trees? I don't think so but I'm just checking to avoid
> extra work.
The parser module lets you construct a parse tree and then compile
it. The parse tree must be correct before this is allowed. Check out
the compileast() function on
http://www.python.org/doc/current/lib/Converting_ASTs.html
--Guido van Rossum (home page: http://www.python.org/~guido/)