[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turning an AST node / subnodes into something human-readable

On Thu, Feb 20, 2014 at 2:04 AM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
>> but what I'd really like to do is get something that looks
>> approximately like "x[1]".
> http://alexleone.blogspot.co.uk/2010/01/python-ast-pretty-printer.html ?

That's still based on ast.dump(), so it's still highly verbose. I've
stuck with just dumping to screen for the present. This really does
seem like a useful feature addition, though, if anyone wants to push
it through.