:= operator is valid in Python 3.13.0 but fails parsing with DT Python Parser
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, python
- 領域
- compilers
研究方向
先透過 parser 進入點重現回報的 x := 3 範例,並檢查指派運算式的處理方式。Issue 未指定任何檔案或測試;完成的條件是有效的 Python 3.13 語法能產生不含錯誤節點且不會出現未捕獲 NoViableAltException 的剖析樹。
由索引模型根據 Issue 內容生成。
描述
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:
- 主要語言
- JavaScript
- 星號
- 25
- 分支
- 7
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
DTStack/dt-python-parser 的其他 Issue
-
難度 5/5 一週以上 新手友好度 20/100
DTStack/dt-python-parser#27 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
DTStack/dt-python-parser#26 ·
-
難度 3/5 1-2 天 新手友好度 45/100
DTStack/dt-python-parser#24 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 15/100
DTStack/dt-python-parser#15 · 3 則留言 ·
-
支持最新版Python3语法 未關閉
難度 5/5 一週以上 新手友好度 20/100
DTStack/dt-python-parser#11 ·
查看 DTStack/dt-python-parser 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 70/100
georgestephanis/p2026#40 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·