Avoid overflow/underflow in math.prod()
Open
Nobody has claimed this yet.
stdlib
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 41458 |
|---|---|
| Nosy | @tim-one, @rhettinger, @mdickinson, @vedgar, @pablogsal, @websurfer5 |
| 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 2020-08-02.20:03:18.588>
labels = ['type-bug', 'library', '3.10']
title = 'Avoid overflow/underflow in math.prod()'
updated_at = <Date 2020-08-10.02:11:01.976>
user = 'https://github.com/rhettinger'
bugs.python.org fields:
activity = <Date 2020-08-10.02:11:01.976>
actor = 'tim.peters'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2020-08-02.20:03:18.588>
creator = 'rhettinger'
dependencies = []
files = ['49373']
hgrepos = []
issue_num = 41458
keywords = []
message_count = 28.0
messages = ['374693', '374734', '374737', '374745', '374748', '374914', '374915', '374921', '374927', '374928', '374929', '374943', '374959', '374960', '374962', '374964', '374966', '374968', '374969', '374970', '374984', '375048', '375049', '375052', '375054', '375075', '375078', '375091']
nosy_count = 6.0
nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'veky', 'pablogsal', 'Jeffrey.Kintscher']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue41458'
versions = ['Python 3.10']
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 reading the linked sum_and_prod.py proposal and the existing math.prod() implementation in CPython. Review the issue discussion to determine the intended behavior for overflow and underflow, then add focused regression coverage; done means the agreed cases are handled without changing other math.prod() behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100