[3.7] bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) by vstinner · Pull Request #10718 · python/cpython

@vstinner

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

@bedevere-bot added the type-bug

An unexpected behavior, bug, or error

label

Nov 26, 2018

vstinner added a commit that referenced this pull request

Nov 26, 2018
) (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 59423e3)
(cherry picked from commit 6f5fa1b)