This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author thautwarm
Recipients thautwarm
Date 2019-01-01.18:02:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546365770.39.0.971588675244.issue35632@roundup.psfhosted.org>
In-reply-to
Content
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

https://github.com/python/cpython/blob/master/Tools/parser/unparse.py

def _Suite(self, tree):
      for stmt in tree.body:
         self.dispatch(stmt)
History
Date User Action Args
2019-01-01 18:02:54thautwarmsetrecipients: + thautwarm
2019-01-01 18:02:50thautwarmsetmessageid: <1546365770.39.0.971588675244.issue35632@roundup.psfhosted.org>
2019-01-01 18:02:50thautwarmlinkissue35632 messages
2019-01-01 18:02:50thautwarmcreate