summaryrefslogtreecommitdiffstats
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-02-07 12:13:58 (GMT)
committerGeorg Brandl <georg@python.org>2011-02-07 12:13:58 (GMT)
commitca583b66c8debea9b083470f9fc3b8ab0589082b (patch)
treef3b90e394029148d08b29c4b41952a31f8e0ea97 /Doc/library/string.rst
parenta5770aa9ca344a038fee4f13b5f1334d5bec98c9 (diff)
downloadcpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.zip
cpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.tar.gz
cpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.tar.bz2
#8691: document that right alignment is default for numbers.
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 4b6a674..d45eb36 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -310,10 +310,10 @@ The meaning of the various alignment options is as follows:
| Option | Meaning |
+=========+==========================================================+
| ``'<'`` | Forces the field to be left-aligned within the available |
- | | space (this is the default). |
+ | | space (this is the default for most objects). |
+---------+----------------------------------------------------------+
| ``'>'`` | Forces the field to be right-aligned within the |
- | | available space. |
+ | | available space (this is the default for numbers). |
+---------+----------------------------------------------------------+
| ``'='`` | Forces the padding to be placed after the sign (if any) |
| | but before the digits. This is used for printing fields |