summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-26 12:40:01 (GMT)
committerGitHub <noreply@github.com>2018-11-26 12:40:01 (GMT)
commit59423e3ddd736387cef8f7632c71954c1859bed0 (patch)
treebf40d682a2c6bc0cf74f4850f7c8edefba9c34a8 /Misc
parentdf108dc6610e41c54ed064a854e3903c143f0d77 (diff)
downloadcpython-59423e3ddd736387cef8f7632c71954c1859bed0.zip
cpython-59423e3ddd736387cef8f7632c71954c1859bed0.tar.gz
cpython-59423e3ddd736387cef8f7632c71954c1859bed0.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-11-20-22-33-38.bpo-33954.RzSngM.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-11-20-22-33-38.bpo-33954.RzSngM.rst b/Misc/NEWS.d/next/Core and Builtins/2018-11-20-22-33-38.bpo-33954.RzSngM.rst
new file mode 100644
index 0000000..9bfbe16
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-11-20-22-33-38.bpo-33954.RzSngM.rst
@@ -0,0 +1,3 @@
+For :meth:`str.format`, :meth:`float.__format__` and
+:meth:`complex.__format__` methods for non-ASCII decimal point when using
+the "n" formatter.