Closed gilch closed 6 years ago
Thanks for the report. This is fixed in astor 0.6:
>>> import ast
>>> import astor
>>> compile("{1: 1, **{2: 2}}", "<str>", "exec", ast.PyCF_ONLY_AST)
<_ast.Module object at 0x7f0a3a080cf0>
>>> astor.to_source(_)
'{(1): 1, **{(2): 2}}\n'
It looks like astor is not ready for some of the newer Python features.
Python 3.6.1
The stars are
None:
.