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

[3.11] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879)#115384
serhiy-storchaka merged 1 commit into
python:3.11from
belm0:backport-09c98e4-3.11

Conversation

@belm0

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.

Fixesgh-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.
Fixespythongh-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>
@belm0belm0 changed the title [3.11] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879) (GH-115353)[3.11] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879)Feb 13, 2024
@serhiy-storchaka
serhiy-storchaka merged commit b86fdf2 into python:3.11Feb 13, 2024
@belm0
belm0 deleted the backport-09c98e4-3.11 branch February 13, 2024 18:24
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@belm0@serhiy-storchaka