Variable sized Python objects become fully opaque in abi3t
未關閉
還沒有人認領這個 Issue。
interpreter-core
pending
topic-C-API
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
The PyVarObject data structure becomes opaque in abi3t. Unfortunately, there is no limited API functionality to provide access to elements of a PyVarObject.
The relevant functions PyObject_GetItemData() and PyObject_GetItemData_DuringGC() are marked as unstable.
It would be very important to fix this before Python 3.15 goes out, or any extensions using variable sized objects will be stranded.
CPython versions tested on:
3.15, CPython main branch
Operating systems tested on:
Linux
Linked PRs
- gh-148324
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
審查連結的 PR gh-148324 以及報告中提到的 PyVarObject limited-API 進入點,包括 PyObject_GetItemData() 和 PyObject_GetItemData_DuringGC()。完成的標準是:可變大小物件仍可透過 abi3t 使用,而不只依賴不穩定的功能。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- backend-api-design
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100