https://github.com/python/cpython/commit/316974382af3c683909634bbf58ec17211c5bcd5
commit: 316974382af3c683909634bbf58ec17211c5bcd5
branch: main
author: Prometheus3375 <35541026+prometheus3...@users.noreply.github.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-04-07T14:02:49+02:00
summary:

gh-131912: Use different grouping options for the integral and fractional parts 
(#132170)

files:
M Doc/library/string.rst

diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index f2f3ab9eefdd50..5e2f35497cbe86 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -737,10 +737,10 @@ Using the comma or the underscore as a digit group 
separator::
    '4996_02d2'
    >>> '{:_}'.format(123456789.123456789)
    '123_456_789.12345679'
-   >>> '{:._}'.format(123456789.123456789)
-   '123456789.123_456_79'
-   >>> '{:_._}'.format(123456789.123456789)
-   '123_456_789.123_456_79'
+   >>> '{:.,}'.format(123456789.123456789)
+   '123456789.123,456,79'
+   >>> '{:,._}'.format(123456789.123456789)
+   '123,456,789.123_456_79'
 
 Expressing a percentage::
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to