Skip to content

Unknown name "kind" on Constant for Python 3.7 #60

Description

@spenczar

The kind attribute was added to the Constant expression in AST in Python 3.8. See https://bugs.python.org/issue36280.

That means that in Python 3.7's ast module, Constants never have a kind, so this line always errors.

While unparse has made it in to Python 3.9's ast module, I'd really like to use astunparse as a sort of backport. It's still useful while Python 3.7 and 3.8 are in heavy use!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions