__module__ attribute is not set correctly for a class created by direct metaclass call
未關閉
還沒有人認領這個 Issue。
3.7 (EOL)
3.8 (EOL)
3.9 (EOL)
interpreter-core
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
| BPO | 28869 |
|---|---|
| Nosy | @stevendaprano, @serhiy-storchaka, @ilevkivskyi, @Vgr255, @hongweipeng, @alegonz |
| PRs |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2016-12-04.21:09:34.786>
labels = ['interpreter-core', '3.8', 'type-bug', '3.7', '3.9']
title = '__module__ attribute is not set correctly for a class created by direct metaclass call'
updated_at = <Date 2019-10-13.11:03:48.103>
user = 'https://github.com/ilevkivskyi'
bugs.python.org fields:
activity = <Date 2019-10-13.11:03:48.103>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2016-12-04.21:09:34.786>
creator = 'levkivskyi'
dependencies = []
files = []
hgrepos = []
issue_num = 28869
keywords = ['patch']
message_count = 20.0
messages = ['282363', '282365', '282367', '282369', '282378', '345073', '345226', '345328', '345332', '345770', '345772', '345797', '345889', '345945', '348210', '348234', '348312', '354071', '354263', '354573']
nosy_count = 6.0
nosy_names = ['steven.daprano', 'serhiy.storchaka', 'levkivskyi', 'abarry', 'hongweipeng', 'alegonz']
pr_nums = ['14126', '14166', '16613']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue28869'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀 issue 的歷史記錄以及參照的三個 pull request:#14126、#14166 和 #16613,因為該 issue 正在進行修補程式審查,而且已經有人提出實作方案。重現標題中描述的直接呼叫 metaclass 行為,並判斷現有方案是否設定了預期的 module 值。行為獲得修正,並由適當的回歸測試涵蓋後,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100