Better way of getting parsed Python rather than an AST?
François Pinard
pinard at iro.umontreal.ca
Sat Oct 9 21:58:55 EDT 2004
[Kenneth McDonald]
> 2) Take an AST as produced by the Python AST module, and convert it
> into a "friendlier" form. Unless I'm missing something, the builtin
> AST representation seems somewhat, um, low-level.
Use the `compiler' module, standard in Python 2.3. It has tiny problems,
but overall, it is fairly useful.
--
François Pinard http://pinard.progiciels-bpi.ca
More information about the Python-list
mailing list