Inconsistent ast.parse
result for python<3.11
and PEP654
#96587
Labels
interpreter-core
Interpreter core (Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
sobolevn commentedSep 5, 2022
PEP654 introduced exception groups and
except*
in python3.11Link: https://peps.python.org/pep-0654/
Right now it is possible to parse
except*
with olderast.parse(..., feature_version=(3, 10))
.Example:
Which is not correct.
But, unlike #96427 it is very simple to fix. And I belive it should be fixed.
I've already applied a patch and will send it shortly after :)
The text was updated successfully, but these errors were encountered: