[New-bugs-announce] [issue24002] Add un-parse function to ast

Larry Hastings report at bugs.python.org
Sun Apr 19 07:39:10 CEST 2015


New submission from Larry Hastings:

Twice recently I've wanted a function that transforms an AST node tree back into text:

* In the hacked-up Tools/clinic/clinic.py for issue #24001
* In the hacked-up Lib/inspect.py for issue #23967

Both times I did a half-assed job just to get the patch working, so we could decide whether or not we want to go this route.

It seems useful and reasonable to do a proper job and add this functionality to ast.

----------
components: Library (Lib)
messages: 241477
nosy: benjamin.peterson, georg.brandl, larry
priority: normal
severity: normal
stage: needs patch
status: open
title: Add un-parse function to ast
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24002>
_______________________________________


More information about the New-bugs-announce mailing list