Closed serhiy-storchaka closed 4 years ago
This is a fix for #31.
no merge ?
Python 3.8 is not released yet, and I've had to undo changes before, for things that were changed in alpha/beta, but removed in the final release. I'd rather wait until there is a final release (or an rc).
Also, it's hard to contest a change/make it improved if nobody test it before rc.
I've tested the proposed change and can confirm that pscript works with Python 3.8 with this patch. I tested by directly deploying the commonast.py
file to my installed pscript copy.
Ok, let's do this :)
also did a new release.
I tweaked this some more in #39. And re-released (0.7.3)
There will be several changes in AST in Python 3.8.
ast.Num
,ast.Str
,ast.Bytes
,ast.Ellipsis
andast.NameConstant
are replaced withast.Constant
. (https://bugs.python.org/issue32892)ast.Constant
can be used since Python 3.6, it is just thatast.parse()
didn't produce it.Simplified AST for subscriptions.
ast.Index
is replaced with its value,ast.ExtSlice
is replaced withast.Tuple
. (https://bugs.python.org/issue34822)This change is not merged yet.