Naming consistency for various types
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Feature or enhancement
Proposal:
A number of classes self-report names which are not an importable name for that type.
The inconsistency means that the class itself can’t be pickled, typeshed can’t match their display name, and can cause minor confusion. I’m interested in getting these to be consistent where possible.
An accounting of all the types I know about in the category is available at the linked discuss thread.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
Recent discuss thread: https://discuss.python.org/t/naming-consistency-for-various-types/70401
Another related discussion for types exposed in the types module is available here: https://github.com/python/cpython/issues/100129
Linked PRs
- gh-126663
- gh-126712
- gh-126721
- gh-126723
- gh-126724
- gh-137122
- gh-137123
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀連結的 Discourse 討論和相關 issue 100129,然後查看 PRs 126663、126712、126721、126723、126724、137122 和 137123。使用其中對受影響型別的列舉來確定已達成共識的範圍;當選定型別都能一致地回報可 import 的名稱,並且所述的 pickling 和 typeshed 問題都得到處理時,工作即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- backend
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100