mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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:
parent
d0368556b5
commit
3d7b5b369a
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue