python / python/cpython

Remove or enable unconditionally EXTRA_FUNCTIONALITY stuff from the _decimal module

Open
#152,939 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension-modules type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

I suspect this define was added to make some staging area for new functionality. Though, it has no pure-Python alternative, not tested by CI or build bots, has regressions (latest: https://github.com/python/cpython/issues/152870).

We should either remove this or include unconditionally, with appropriate support from _pydecimal.py.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the EXTRA_FUNCTIONALITY handling in the _decimal module with the corresponding support in _pydecimal.py. Review regression issue 152870 and the current CI or build-bot coverage. Done means either removing the staging functionality or enabling it unconditionally, with the pure-Python implementation and regressions covered appropriately.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.