[New-bugs-announce] [issue35632] support unparse for Suite ast
report at bugs.python.org
Tue Jan 1 13:02:50 EST 2019
New submission from thautwarm <yaoxiansamma at gmail.com>:
Although `Suite` is not an actual AST used in CPython, it's quite useful when performing some code analysis.
`Suite` is a sequence of statements which could be used to represent a block whose context inherits from outside block's.
Also, the document said it's useful in Jython.
I wonder if we could support `unparse` for Suite through making a tiny modification to
def _Suite(self, tree):
for stmt in tree.body:
components: Demos and Tools
title: support unparse for Suite ast
versions: Python 3.6, Python 3.7, Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce