-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
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
Support for Python 3.6 Constant nodes #120
Comments
I just ran into this problem. Here is the error message on Travis CI (only fails for python 3.8-dev) just in case this might be helpful:
|
berkerpeksag
pushed a commit
that referenced
this issue
Mar 22, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Python 3.6, the new
ast.Constant
node was introduced, ostensibly for the purposes of constant folding. However, in Python 3.8, it appears that it is being used to replaceast.Str
,ast.Bytes
,ast.Num
,ast.Ellipsis
, andast.NameConstant
.Since astor doesn't include a
visit_Constant
method on itsSourceGenerator
, attempting to emit code generated withast.Constant
causes a lot of errors.ast.Constant
ast.Constant
The text was updated successfully, but these errors were encountered: