gh-127852: add remark about ',' separator (#127854)

Specify that it is valid for floats and ints with 'd' presentation and an error otherwise.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Sergey B Kirpichev 2024-12-14 16:28:26 +03:00 committed by GitHub
parent 78e766f2e2
commit e2325c9db0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -409,7 +409,9 @@ conversions, trailing zeros are not removed from the result.
.. index:: single: , (comma); in string formatting
The ``','`` option signals the use of a comma for a thousands separator.
The ``','`` option signals the use of a comma for a thousands separator for
floating-point presentation types and for integer presentation type ``'d'``.
For other presentation types, this option is an error.
For a locale aware separator, use the ``'n'`` integer presentation type
instead.