-
Notifications
You must be signed in to change notification settings - Fork 24
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
Python 3.8 test error: AttributeError: 'Constant' object has no attribute 'n' #47
Comments
The bug mentioned in sqlalchemy/mako#287 got released in mako 1.0.8. If you have a fix for pyramid_mako, please submit a PR. |
I think I know what the problem is (in mako). EDIT: See sqlalchemy/mako#287 (comment) |
hroncok
added a commit
to hroncok/mako
that referenced
this issue
Apr 11, 2019
Since Python 3.8, class ast.Constant is used for all constants. Old classes ast.Num, ast.Str, ast.Bytes, ast.NameConstant and ast.Ellipsis are still available, but they will be removed in future Python releases. Constants have values, but not always ns. See sqlalchemy#287 (comment) See python/cpython#9445 Fixes Pylons/pyramid_mako#47
sqlalchemy-bot
pushed a commit
to sqlalchemy/mako
that referenced
this issue
Apr 13, 2019
Since Python 3.8, class ast.Constant is used for all constants. Old classes ast.Num, ast.Str, ast.Bytes, ast.NameConstant and ast.Ellipsis are still available, but they will be removed in future Python releases. Further corrected the previous fix for 🎫`287` as it relied upon an attribute that is monkeypatched by Python's ``ast`` module for some reason, which fails if ``ast`` hasn't been imported; the correct attribute ``Constant.value`` is now used. Also note the issue was mis-numbered in the previous changelog note. References: Pylons/pyramid_mako#47 Fixes: #287 Closes: #292 Pull-request: #292 Pull-request-sha: b48081a Change-Id: Ic3fd1975e608b6890410f3fd4ad4d949478dc45e
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is Python 3.8.0a3. I had to modify the tox.ini to have basepython set for 3.8:
And when i run tox for 3.8 on master (333986c):
The text was updated successfully, but these errors were encountered: