mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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:
parent
78e766f2e2
commit
e2325c9db0
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