:= operator is valid in Python 3.13.0 but fails parsing with DT Python Parser
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, python
- Domain
- compilers
Research direction
Start by reproducing the reported x := 3 example through the parser entry point and inspect how assignment expressions are handled. The issue names no files or tests; done means valid Python 3.13 syntax produces a parse tree without error nodes or an uncaught NoViableAltException.
Written by the indexing model from the issue text.
Description
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:
- Dominant language
- JavaScript
- Stars
- 25
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DTStack/dt-python-parser
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
DTStack/dt-python-parser#27 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
DTStack/dt-python-parser#26 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
DTStack/dt-python-parser#24 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
DTStack/dt-python-parser#15 · 3 comments ·
-
支持最新版Python3语法 Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
DTStack/dt-python-parser#11 ·
All issues in DTStack/dt-python-parser
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·