]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718)
authorVictor Stinner <vstinner@redhat.com>
Mon, 26 Nov 2018 13:17:01 +0000 (14:17 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Nov 2018 13:17:01 +0000 (14:17 +0100)
commit6f5fa1b4be735159e964906ab608dc467476e47c
tree334f91923d65f214145651f007320590ee3ec13e
parente88553c3742507ba83590ecca44ae7f134f38410
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718)

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)
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