mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Document the 'n' integer presentation type for str.format().
This commit is contained in:
parent
d3343cb8a1
commit
5e18a208dc
1 changed files with 4 additions and 0 deletions
|
@ -383,6 +383,10 @@ The available integer presentation types are:
|
|||
| ``'X'`` | Hex format. Outputs the number in base 16, using upper- |
|
||||
| | case letters for the digits above 9. |
|
||||
+---------+----------------------------------------------------------+
|
||||
| ``'n'`` | Number. This is the same as ``'d'``, except that it uses |
|
||||
| | the current locale setting to insert the appropriate |
|
||||
| | number separator characters. |
|
||||
+---------+----------------------------------------------------------+
|
||||
| None | the same as ``'d'`` |
|
||||
+---------+----------------------------------------------------------+
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue