Skip to content

[3.11] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879) - #115384

Merged
serhiy-storchaka merged 1 commit into
python:3.11from
belm0:backport-09c98e4-3.11
Feb 13, 2024
Merged

serhiy-storchaka merged 1 commit into
python:3.11from
belm0:backport-09c98e4-3.11

Conversation

@belm0

@belm0 belm0 commented Feb 13, 2024

Copy link
Copy Markdown
Contributor

Immediate merits:

  • eliminate complex workarounds for 'z' format support (NOTE: mpdecimal recently added 'z' support, so this becomes efficient in the long term.)
  • fix 'z' format memory leak
  • fix 'z' format applied to 'F'
  • fix missing 'GH-' format support

Suggested and prototyped by Stefan Krah.

Fixes gh-114563, gh-91060

(cherry picked from commit 72340d1)

…unsupported format strings (pythonGH-114879) (pythonGH-115353)

Immediate merits:
* eliminate complex workarounds for 'z' format support
  (NOTE: mpdecimal recently added 'z' support, so this becomes
  efficient in the long term.)
* fix 'z' format memory leak
* fix 'z' format applied to 'F'
* fix missing 'GH-' format support

Suggested and prototyped by Stefan Krah.

Fixes pythongh-114563, pythongh-91060

(cherry picked from commit 72340d1)

(cherry picked from commit 09c98e4)

Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: Stefan Krah <skrah@bytereef.org>
@belm0
belm0 requested a review from rhettinger as a code owner February 13, 2024 04:15
@belm0 belm0 changed the title [3.11] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879) (GH-115353) Feb 13, 2024
@serhiy-storchaka
serhiy-storchaka merged commit b86fdf2 into python:3.11 Feb 13, 2024
@belm0
belm0 deleted the backport-09c98e4-3.11 branch February 13, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants