Add PyFrame_SetLineNumber() for Cython
未關閉
還沒有人認領這個 Issue。
interpreter-core
topic-C-API
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Feature or enhancement
Proposal:
CPython hides PyFrameObject internals so Cython include pycore_frame.h to set f_lineno.
Let's provide PyFrame_SetLineNumber() for Cython.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
https://github.com/python/cpython/pull/117551#issuecomment-2097718129
Linked PRs
- gh-131246
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
此提案沒有指定任何原始檔或測試。請先檢閱 PR 117551 中先前的討論,以及所連結的 PR gh-131246;要求的結果是提供公開的 PyFrame_SetLineNumber() API,讓 Cython 不必包含 pycore_frame.h。確認該 API 已公開且可用於所述的 Cython 使用情境,以確認完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- c, python
- 領域
- api, backend
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100