[Python-ideas] AST Pretty Printer

Haoyi Li haoyi.sg at gmail.com
Fri Sep 13 01:40:22 CEST 2013

I would be interested in it; would have made developing macropy much easier
if there was a way to nicely print large blobs of AST (i.e. nicer than

On Thu, Sep 12, 2013 at 4:31 PM, Ryan <rymg19 at gmail.com> wrote:

> I always encounter one problem when dealing with Python ASTs: When I print
> it, it looks like Lisp(aka Lots of Irritated Superfluous Parenthesis). In
> short: it's a mess.
> My idea is an AST pretty printer built on ast.NodeVisitor. If anyone finds
> this interesting, I can probably have a prototype of the class between
> later today and sometime tomorrow.
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130912/e70b46f5/attachment-0001.html>

More information about the Python-ideas mailing list