Message332845
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) |
|
Date |
User |
Action |
Args |
2019-01-01 18:02:54 | thautwarm | set | recipients:
+ thautwarm |
2019-01-01 18:02:50 | thautwarm | set | messageid: <1546365770.39.0.971588675244.issue35632@roundup.psfhosted.org> |
2019-01-01 18:02:50 | thautwarm | link | issue35632 messages |
2019-01-01 18:02:50 | thautwarm | create | |
|