8000 Fixes exception due to ast parser changes. by comfuture · Pull Request #30 · alonho/pql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixes exception due to ast parser changes. #30

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

comfuture
Copy link

I just wrote quick fix of #29 by producing handle_Constant() method for each AstHandlers.
And the existing handle_Num(), handle_Str(), .. methods were left untouched to obtain backward compatibility.

See https://docs.python.org/3/library/ast.html#ast.NodeVisitor.generic_visit

since version 3.8: Methods visit_Num(), visit_Str(), visit_Bytes(), visit_NameConstant() and visit_Ellipsis() are deprecated now and will not be called in future Python versions. Add the visit_Constant() method to handle all constant nodes.

@cjmaynar
Copy link
cjmaynar commented Oct 6, 2020

Would love to see this get merged in and released upstream to allow upgrades to python 3.8

@cjmaynar
Copy link

@alonho is there anyway you could merge this and release a new version on pypy to allow for python 3.8 compatability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0