We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like astor is not ready for some of the newer Python features.
Python 3.6.1
>>> import astor, ast >>> astor.__version__ '0.5' >>> compile("{1: 1, **{2: 2}}", "<str>", "exec", ast.PyCF_ONLY_AST) <_ast.Module object at 0x00000180BB3F1F28> >>> astor.codegen.to_source(_) '{1: 1, None: {2: 2, }, }'
The stars are None: .
None:
The text was updated successfully, but these errors were encountered:
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'
Sorry, something went wrong.
No branches or pull requests
It looks like astor is not ready for some of the newer Python features.
Python 3.6.1
The stars are
None:
.The text was updated successfully, but these errors were encountered: