Builtins like int() and float() should not blindly treat buffer protocol bytes as string characters.
Open
Nobody has claimed this yet.
interpreter-core
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| 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 = []
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported int() and float() behavior with values implementing the buffer protocol, then trace the relevant interpreter-core conversion path. The issue provides no file or test location, and the exact replacement behavior is not specified; completion would require an agreed behavior and corresponding regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100