Skip to content

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

@joshi1983

Description

@joshi1983

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions