RustPython / RustPython/Parser
Using strings inside f-string
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Rust
- 星號
- 117
- 分支
- 38
- 平均合併
- 4 天 7 小時
- 30 天內合併 PR
- 1
描述
From: https://github.com/mtshiba/pylyzer/issues/115
Starting with Python 3.12, the use of strings within f-strings is permitted.
However, the current parser implementation does not seem to allow the use of same quoting type strings within f-strings.
f"{"hello"}"
results in the following parsing error:
invalid syntax. Got unexpected token 'hello' at row 1 col 5
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
未指定 parser 檔案或測試。首先重現所示的 f-string 範例,並追蹤 parser 對替換欄位和巢狀字串的處理。完成標準是:使用相同引號的範例能夠依照 Python 3.12 的語法規則成功解析,同時不會導致現有 f-string 解析出現回歸。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python, rust
- 領域
- compilers
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100