In the Python 3.8 AST, [all constants are now](https://bugs.python.org/issue32892) 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.
Activity
Technologicat commentedon Aug 8, 2019
Related to #1.
Technologicat commentedon Feb 27, 2020
Issues cleanup: 0.15 is probably a long way off; we should actually add 3.8 support earlier. Maybe in a small service release after 0.14.2?
Technologicat commentedon Mar 1, 2020
The GTS docs have updated to 3.8.
Technologicat commentedon Aug 11, 2020
This is a bug in that until we support
ast.Constant, the macros won't work right on Python 3.8.Technologicat commentedon Aug 29, 2020
0.14.3 is becoming such a big update already, maybe it's better to add Python 3.8 support in the next release.
[-]AST representation of constants changed in Python 3.8[/-][+]Python 3.8 support for macro code[/+]Technologicat commentedon Sep 11, 2020
Also consider if we need to do something with
ast.NamedExprintroduced in 3.8.Technologicat commentedon Apr 12, 2021
While at it, we should add support also for Python 3.9.
The
ast.Indexwrapper inast.Subscriptis gone, andast.ExtSlicehas changed a bit. See Technologicat/mcpyrate#20.Technologicat commentedon Apr 21, 2021
Done. Now just need to port the macro code to
mcpyrate(which is orthogonal to the AST changes).