commit | 59423e3ddd736387cef8f7632c71954c1859bed0 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Mon Nov 26 13:40:01 2018 +0100 |
committer | GitHub <noreply@github.com> | Mon Nov 26 13:40:01 2018 +0100 |
tree | bf40d682a2c6bc0cf74f4850f7c8edefba9c34a8 | |
parent | df108dc6610e41c54ed064a854e3903c143f0d77 [diff] |
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) Fix str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the "n" formatter. Changes: * Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires a _PyUnicodeWriter object for the buffer and a Python str object for digits. * Rename FILL() macro to unicode_fill(), convert it to static inline function, add "assert(0 <= start);" and rework its code.