python / python/cpython

26 C APIs scheduled for removal in 3.16 are still present

未關閉
#154,757 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

interpreter-core topic-C-API type-feature
主要語言
Python
星號
77.2k
分支
35.9k
PR 合併指標
PR 指標待擷取

描述

Proposal:

Doc/deprecations/c-api-pending-removal-in-3.16.rst lists 26 C APIs due to be removed in 3.16. All 26 are still in Include/ on main, still marked Py_DEPRECATED:

  • PySys_SetArgv, PySys_SetArgvEx, Py_SetProgramName, Py_SetPythonHome
  • the 21 Py_* global configuration variables (GH-133654 open, draft)
  • Py_UNICODE

Py_SetProgramName and PySys_SetArgv were removed once in 3.13 and restored in gh-117987 after it broke packages, so this is not a mechanical removal.

The file is also not included from Doc/deprecations/index.rst, so these deprecations are currently not listed on the Deprecations page.

Has this already been discussed elsewhere?

No response given

Linked PRs
  • gh-154758
  • gh-154759

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

檢查 Doc/deprecations/c-api-pending-removal-in-3.16.rst、Doc/deprecations/index.rst,以及 Include/ 中受影響的宣告。檢查連結的 PR gh-154758 和 gh-154759,以及關於全域組態變數的 GH-133654。完成的條件是,所有列出的 API 的移除狀態都已解決,且 deprecations 頁面包含相關檔案。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
c
領域
api, documentation
Issue 類型
重構
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。