diff options
author | Eric Smith <eric@trueblade.com> | 2008-05-12 10:01:24 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-05-12 10:01:24 (GMT) |
commit | 5e18a208dc39856132056cad5ae3f77a9b711499 (patch) | |
tree | 85ebd75e4b5bc03c606851829c83b09f4fc500da | |
parent | d3343cb8a1bae607541ae0b567eecccefbf0051b (diff) | |
download | cpython-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.rst | 4 |
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'`` | +---------+----------------------------------------------------------+ |