[New-bugs-announce] [issue35632] support unparse for Suite ast

thautwarm 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
messages: 332845
nosy: thautwarm
priority: normal
severity: normal
status: open
title: support unparse for Suite ast
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list