Ast tree and python code

Yermat loic at yermat.net1.nerim.net
Wed Mar 3 21:11:12 CET 2004


Hi,

Does someone know how I can reverse an AST tree back into python code 
with few modification ?
What I want to do is to complete trees before writing them back but in a 
way not to far from the original code ? Especially, indentation, line 
return, etc.

Of course, I could program it myself but if someone already done it...

Yermat




More information about the Python-list mailing list