Remove unused FVS_* macros
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
issue指出,在 Python 3.13 移除 opcode FORMAT_VALUE 後,Include/ceval.h 中的 FVS_MASK 和 FVS_HAVE_SPEC 已未被使用。閱讀它們的定義,並在程式碼庫中搜尋剩餘的參照。移除這些未使用的巨集,不設棄用期,並確認沒有剩餘參照,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python/cpython 的其他 Issue
-
extension-modules type-bug
難度 2/5 1-3 小時 新手友好度 72/100
python/cpython#160001 · 1 則留言 ·
維護者通常 1 天內回覆
-
stdlib topic-XML type-bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
Docs: problem with page "msvcrt — Useful routines from the MS VC runtime"可能重新可做 @jikekei 於 12 天前認領,目前沒有進行中的 PR。 未關閉docs
難度 1/5 1 小時以內 新手友好度 85/100
python/cpython#159072 · 6 則留言 ·
維護者通常 1 天內回覆
-
Document unpacking in generator expressions (PEP 798)可能已有人在做 @Marwan-verse 於 9 天前認領。 未關閉docs
難度 2/5 1-3 小時 新手友好度 62/100
python/cpython#159061 · 1 則留言 ·
維護者通常 1 天內回覆
-
`http.client.HTTPSConnection._tunnel` raises `AttributeError: 'NoneType' object has no attribute 'encode'` when header value is `None`可能重新可做 關聯的 PR 已關閉且未合併。 未關閉3.14 3.15 3.16 stdlib type-bug
難度 2/5 1-3 小時 新手友好度 68/100
python/cpython#159044 · 17 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
volcengine/OpenViking#6445 ·
維護者通常 1 天內回覆
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be edited可能已有人在做 @ManyaJain111 今天認領。 未關閉bug enhancement possible-duplicate
難度 2/5 1-3 小時 新手友好度 77/100
AOSSIE-Org/PictoPy#1637 · 4 則留言 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
deepspeedai/DeepSpeed#8884 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
flagos-ai/FlagQuantum#718 ·
維護者通常 1 天內回覆
-
bug CI-failure high priority
難度 1/5 1 小時以內 新手友好度 86/100
vllm-project/afd-plugin#483 ·
維護者通常 1 天內回覆