berkerpeksag / astor

Python AST read/write
https://pypi.org/project/astor/
BSD 3-Clause "New" or "Revised" License
793 stars 101 forks source link

Starred-expressions inside of a slice can't roundtripabble. #180

Open isidentical opened 4 years ago

isidentical commented 4 years ago
>>> astor.to_source(ast.parse("a[(x, *y)]"))
'a[x, *y]\n'

Example PR to ast.unparse: https://github.com/python/cpython/pull/20152