User-created types with wrong __new__ can be instantiated
Open
Nobody has claimed this yet.
3.7 (EOL)
3.8 (EOL)
interpreter-core
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 34362 |
|---|---|
| Nosy | @ncoghlan, @ericsnowcurrently, @serhiy-storchaka, @pppery, @VadimPushtaev |
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-08-08.19:07:33.344>
labels = ['interpreter-core', '3.8', 'type-bug', '3.7']
title = 'User-created types with wrong __new__ can be instantiated'
updated_at = <Date 2018-08-09.17:52:28.761>
user = 'https://github.com/pppery'
bugs.python.org fields:
activity = <Date 2018-08-09.17:52:28.761>
actor = 'ppperry'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2018-08-08.19:07:33.344>
creator = 'ppperry'
dependencies = []
files = []
hgrepos = []
issue_num = 34362
keywords = []
message_count = 4.0
messages = ['323297', '323299', '323336', '323347']
nosy_count = 5.0
nosy_names = ['ncoghlan', 'eric.snow', 'serhiy.storchaka', 'ppperry', 'Vadim Pushtaev']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue34362'
versions = ['Python 2.7', 'Python 3.6', 'Python 3.7', 'Python 3.8']
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
The issue concerns Python's Interpreter Core, but it names no source file, test, or entry point. Start by reproducing the reported behavior for a user-created type with an invalid new, then trace the interpreter path that permits instantiation. Done means the invalid type can no longer be instantiated and regression coverage documents the corrected behavior.
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
- 35/100