Message241483
Good idea, I'll go ahead and borrow Guido's time machine.
https://docs.python.org/3/library/ast.html#ast.NodeVisitor
However, NodeVisitor does not transform the ast tree back into text. So in what way is this helpful?
Also, for what it's worth: both my use cases only need to handle expressions ("r-values" if you prefer). I don't need to generate classes, functions, blocks, or even statements. If we wanted to weaken the implementation to only handle expressions I'd be happy. (In fact, I'd be happier this way, because it means the implementation would be much simpler!) |
|
Date |
User |
Action |
Args |
2015-04-19 05:57:06 | larry | set | recipients:
+ larry, georg.brandl, benjamin.peterson, berker.peksag, zach.ware, serhiy.storchaka |
2015-04-19 05:57:06 | larry | set | messageid: <1429423026.78.0.454227298711.issue24002@psf.upfronthosting.co.za> |
2015-04-19 05:57:06 | larry | link | issue24002 messages |
2015-04-19 05:57:06 | larry | create | |
|