[3.12] gh-127852: add remark about ',' separator (GH-127854) (#127942)

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

(cherry picked from commit e2325c9db0)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2024-12-14 14:37:00 +01:00 committed by GitHub
parent d0368556b5
commit 3d7b5b369a
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.