Ast tree and python code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yermat

    Ast tree and python code

    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

Working...