This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients benjamin.peterson, berker.peksag, georg.brandl, larry, serhiy.storchaka, zach.ware
Date 2015-04-19.05:57:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429423026.78.0.454227298711.issue24002@psf.upfronthosting.co.za>
In-reply-to
Content
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!)
History
Date User Action Args
2015-04-19 05:57:06larrysetrecipients: + larry, georg.brandl, benjamin.peterson, berker.peksag, zach.ware, serhiy.storchaka
2015-04-19 05:57:06larrysetmessageid: <1429423026.78.0.454227298711.issue24002@psf.upfronthosting.co.za>
2015-04-19 05:57:06larrylinkissue24002 messages
2015-04-19 05:57:06larrycreate