Builtins like int() and float() should not blindly treat buffer protocol bytes as string characters.
未关闭
还没有人认领这个 Issue。
interpreter-core
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
| BPO | 41707 |
|---|---|
| Nosy | @serhiy-storchaka, @gitamohr |
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 2020-09-03.20:51:59.125>
labels = ['interpreter-core', 'type-bug']
title = 'Builtins like int() and float() should not blindly treat buffer protocol bytes as string characters.'
updated_at = <Date 2020-09-04.06:15:31.837>
user = 'https://github.com/gitamohr'
bugs.python.org fields:
activity = <Date 2020-09-04.06:15:31.837>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2020-09-03.20:51:59.125>
creator = 'amohr'
dependencies = []
files = []
hgrepos = []
issue_num = 41707
keywords = []
message_count = 2.0
messages = ['376317', '376336']
nosy_count = 2.0
nosy_names = ['serhiy.storchaka', 'amohr']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue41707'
versions = []
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用实现了 buffer protocol 的值重现所报告的 int() 和 float() 行为,然后跟踪解释器核心中相关的转换路径。Issue 未提供文件或测试位置,也未指定确切的替代行为;要完成这项工作,需要先就行为达成一致,并提供相应的回归覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- compilers
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100