Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results
オープン
まだ誰も着手していません。
interpreter-core
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
| 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
添付された x.py の再現コードから始めて PR 30112 を確認し、その後、割り込まれた init_subclass 呼び出しに関する interpreter-core の処理を読んでください。報告された割り込みによって isinstance() または issubclass() の結果が誤らなくなり、その動作が回帰テストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100