Skip to content

Python 3.8 support for macro code #16

Description

@Technologicat

In the Python 3.8 AST, all constants are now represented by the ast.Constant node type.

Thus to support 3.8 and later properly, we will need to update any macro code that deals with Num, Str, NameConstant.

Maybe in 0.15, move these into syntax.astcompat, and start accepting Constant nodes as an alternative.

There are not many use sites, so it's probably not worth building an abstraction for this.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions