Exceptions raised while parsing _interpreters configs do not name the offending key
未關閉
還沒有人認領這個 Issue。
interpreter-core
topic-subinterpreters
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Errors from _interpreters.create on a bad config (wrong type, bad string) don't say which key failed, making multi-field configs hard to debug.
Per @picnixz on #148799, add a PEP 678 note via _PyErr_FormatNote at each error site in Python/interpconfig.c.
Related: gh-148798.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Python/interpconfig.c 中 _interpreters.create 使用的錯誤路徑開始,特別關注由無效型別或字串導致的失敗。追蹤每個設定鍵檢查,並確認多欄位無效設定產生的錯誤是否透過 PEP 678 註記包含出錯的鍵。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- c, python
- 領域
- compilers
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100