Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Remove unused FVS_* macros

未關閉 適合新手
#160,109 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
78/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
c, python
領域
backend

研究方向

issue指出,在 Python 3.13 移除 opcode FORMAT_VALUE 後,Include/ceval.h 中的 FVS_MASK 和 FVS_HAVE_SPEC 已未被使用。閱讀它們的定義,並在程式碼庫中搜尋剩餘的參照。移除這些未使用的巨集,不設棄用期,並確認沒有剩餘參照,即表示完成。

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

描述

interpreter-core type-feature
Feature or enhancement

The macros FVS_MASK and FVS_HAVE_SPEC, which are defined in Include/ceval.h, are unused in the cpython code base. They are left over from the removal of the FORMAT_VALUE opcode in python 3.13: they were used to determine if an f-string had a format spec or not. I do not think they need a deprecation period: they were never documented, and any use of them would be unrelated to their original purpose.

I've discussed this with @vstinner who agreed that we don't need a deprecation period.

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:

No response

主要語言
Python
星號
77.6k
分支
38.4k
平均合併
20 小時 19 分鐘
30 天內合併 PR
624

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

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

python/cpython 的其他 Issue

查看 python/cpython 的全部 Issue

相似的 Issue

更多 Python Issue

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

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