c is a parsed tree of a python code:
c=ast.parse('''
for x in y:
print(x)
''')
d is the dump file of tree-c
d=ast.dump(c)
the content of d is the following string:
Module(
body=[For(target=Name(id='x', ctx=Store()), iter=Name(id='y', ctx=Load()),
body=[Expr(value=Call(func=Name(id='print', ctx=Load()),
args=[Name(id='x', ctx=Load())], keywords=[]))], orelse=[])])
I've looked around the net to see if I could find a method to use the content of d, to revert back to the tree c.
Any suggestions?
Thank you