]> granicus.if.org Git - python/commitdiff
Document the 'n' integer presentation type for str.format().
authorEric Smith <eric@trueblade.com>
Mon, 12 May 2008 10:01:24 +0000 (10:01 +0000)
committerEric Smith <eric@trueblade.com>
Mon, 12 May 2008 10:01:24 +0000 (10:01 +0000)
Doc/library/string.rst

index 99c2c80d203450c10d10474dde92e277a39ad433..461f466e66a6d77982d8718787cb23d071404e37 100644 (file)
@@ -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'``                                      |
    +---------+----------------------------------------------------------+