Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results
未關閉
還沒有人認領這個 Issue。
interpreter-core
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
| BPO | 38085 |
|---|---|
| Nosy | @rhettinger, @cfbolz, @ambv, @hongweipeng |
| PRs | |
| Files |
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 2019-09-10.09:09:41.066>
labels = ['interpreter-core', '3.8', 'type-bug', '3.7', '3.9']
title = 'Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results'
updated_at = <Date 2021-12-23.20:42:44.132>
user = 'https://bugs.python.org/xitop'
bugs.python.org fields:
activity = <Date 2021-12-23.20:42:44.132>
actor = 'Carl.Friedrich.Bolz'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2019-09-10.09:09:41.066>
creator = 'xitop'
dependencies = []
files = ['50515']
hgrepos = []
issue_num = 38085
keywords = ['patch']
message_count = 9.0
messages = ['351599', '355037', '358966', '381210', '383796', '401784', '401998', '409106', '409107']
nosy_count = 5.0
nosy_names = ['rhettinger', 'Carl.Friedrich.Bolz', 'lukasz.langa', 'hongweipeng', 'xitop']
pr_nums = ['30112']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue38085'
versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從附加的 x.py 重現開始,檢視 PR 30112,然後閱讀 interpreter-core 中針對遭中斷的 init_subclass 呼叫所做的處理。當回報的中斷不再產生錯誤的 isinstance() 或 issubclass() 結果,且該行為有回歸測試涵蓋時,即算完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- compilers
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100