object.__new__ does not accept arguments if __bases__ is changed
未关闭
还没有人认领这个 Issue。
3.7 (EOL)
3.8 (EOL)
interpreter-core
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
| BPO | 32768 |
|---|---|
| Nosy | @gvanrossum, @ncoghlan, @bitdancer, @ethanfurman, @serhiy-storchaka |
| 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 2018-02-04.22:05:12.953>
labels = ['interpreter-core', '3.8', 'type-bug', '3.7']
title = 'object.__new__ does not accept arguments if __bases__ is changed'
updated_at = <Date 2020-12-24.20:00:05.366>
user = 'https://bugs.python.org/VA'
bugs.python.org fields:
activity = <Date 2020-12-24.20:00:05.366>
actor = 'ethan.furman'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2018-02-04.22:05:12.953>
creator = 'VA'
dependencies = []
files = ['47425']
hgrepos = []
issue_num = 32768
keywords = []
message_count = 12.0
messages = ['311622', '311656', '311667', '311679', '311696', '311716', '311731', '311772', '341692', '341693', '341782', '383703']
nosy_count = 7.0
nosy_names = ['gvanrossum', 'ncoghlan', 'r.david.murray', 'ethan.furman', 'serhiy.storchaka', 'VA', 'alexey-muranov']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue32768'
versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行 bases.py 中的复现,并确认更改 bases 后 object.new 的行为。然后跟踪解释器核心中的相关处理,并查看链接的 BPO 讨论,以确定预期行为。当一个有针对性的回归测试覆盖该情况,并且在不破坏现有对象构造的情况下修正行为后,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- compilers
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 28/100