summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-05-12 10:01:24 (GMT)
committerEric Smith <eric@trueblade.com>2008-05-12 10:01:24 (GMT)
commit5e18a208dc39856132056cad5ae3f77a9b711499 (patch)
tree85ebd75e4b5bc03c606851829c83b09f4fc500da
parentd3343cb8a1bae607541ae0b567eecccefbf0051b (diff)
downloadcpython-5e18a208dc39856132056cad5ae3f77a9b711499.zip
cpython-5e18a208dc39856132056cad5ae3f77a9b711499.tar.gz
cpython-5e18a208dc39856132056cad5ae3f77a9b711499.tar.bz2
Document the 'n' integer presentation type for str.format().
-rw-r--r--Doc/library/string.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 99c2c80..461f466 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -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'`` |
+---------+----------------------------------------------------------+