Document the 'n' integer presentation type for str.format().

This commit is contained in:
Eric Smith 2008-05-12 10:01:24 +00:00
parent d3343cb8a1
commit 5e18a208dc
1 changed files with 4 additions and 0 deletions

View File

@ -383,6 +383,10 @@ The available integer presentation types are:
| ``'X'`` | Hex format. Outputs the number in base 16, using upper- | | ``'X'`` | Hex format. Outputs the number in base 16, using upper- |
| | case letters for the digits above 9. | | | 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'`` | | None | the same as ``'d'`` |
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+