DTStack / DTStack/dt-python-parser

:= operator is valid in Python 3.13.0 but fails parsing with DT Python Parser

Offen
#28 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
25
Forks
7
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Try parsing the following Python code:
`x = 1
print(x := 3)`

You will get a tree full of error nodes. NoViableAltException appears to be thrown but caught and passed back.

That code is valid, though. I ran that in Python 3.13.0 as screenshotted here to demonstrate the code is valid:
Image

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.