Skip to content

Comments

Fixes exception due to ast parser changes.#30

Open
comfuture wants to merge 13 commits intoalonho:masterfrom
comfuture:master
Open

Fixes exception due to ast parser changes.#30
comfuture wants to merge 13 commits intoalonho:masterfrom
comfuture:master

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