diff options
author | John Belmonte <john@neggie.net> | 2024-02-12 21:31:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 21:31:12 (GMT) |
commit | 09c98e4633848ce05df8621f41eb09954b55217a (patch) | |
tree | b722a0fad3a217ff606b84e736fbecbe33cf22c0 /Tools | |
parent | 2ed47d8f8ba3dd8e2f992a333c4382d26ec2bf20 (diff) | |
download | cpython-09c98e4633848ce05df8621f41eb09954b55217a.zip cpython-09c98e4633848ce05df8621f41eb09954b55217a.tar.gz cpython-09c98e4633848ce05df8621f41eb09954b55217a.tar.bz2 |
[3.12] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879) (GH-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 '#' format support
Suggested and prototyped by Stefan Krah.
Fixes gh-114563, gh-91060
(cherry picked from commit 72340d15cdfdfa4796fdd7c702094c852c2b32d2)
Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: Stefan Krah <skrah@bytereef.org>
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/c-analyzer/cpython/globals-to-fix.tsv | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/c-analyzer/cpython/globals-to-fix.tsv b/Tools/c-analyzer/cpython/globals-to-fix.tsv index 8bfafd6..b47393e 100644 --- a/Tools/c-analyzer/cpython/globals-to-fix.tsv +++ b/Tools/c-analyzer/cpython/globals-to-fix.tsv @@ -436,6 +436,7 @@ Modules/_decimal/_decimal.c - basic_context_template - Modules/_decimal/_decimal.c - current_context_var - Modules/_decimal/_decimal.c - default_context_template - Modules/_decimal/_decimal.c - extended_context_template - +Modules/_decimal/_decimal.c - PyDecimal - Modules/_decimal/_decimal.c - round_map - Modules/_decimal/_decimal.c - Rational - Modules/_decimal/_decimal.c - SignalTuple - |