]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) (GH-10720)
authorVictor Stinner <vstinner@redhat.com>
Mon, 26 Nov 2018 16:03:31 +0000 (17:03 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Nov 2018 16:03:31 +0000 (17:03 +0100)
commitfc4a44b0c3a69390eca4680d89c2ae5fe967f882
tree02752de47c8d3e5e82042128dd24204223e344ae
parent6c12091ca67e8ec2960652ef7a763d0de772f799
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) (GH-10720)

Fix str.format(), float.__format__() and complex.__format__() methods
for non-ASCII decimal point when using the "n" formatter.

Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires
a _PyUnicodeWriter object for the buffer and a Python str object
for digits.

(cherry picked from commit 59423e3ddd736387cef8f7632c71954c1859bed0)
(cherry picked from commit 6f5fa1b4be735159e964906ab608dc467476e47c)
Include/unicodeobject.h
Misc/NEWS.d/next/Core and Builtins/2018-11-20-22-33-38.bpo-33954.RzSngM.rst [new file with mode: 0644]
Objects/stringlib/localeutil.h
Objects/unicodeobject.c
Python/formatter_unicode.c