summaryrefslogtreecommitdiffstats
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
parenta5770aa9ca344a038fee4f13b5f1334d5bec98c9 (diff)
downloadcpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.zip
cpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.tar.gz
cpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.tar.bz2
#8691: document that right alignment is default for numbers.
-rw-r--r--Doc/ACKS.txt1
-rw-r--r--Doc/library/string.rst4
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt
index c3ab264..bcf70b5 100644
--- a/Doc/ACKS.txt
+++ b/Doc/ACKS.txt
@@ -130,6 +130,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Andrew MacIntyre
* Vladimir Marangozov
* Vincent Marchetti
+ * Westley Martínez
* Laura Matson
* Daniel May
* Rebecca McCreary
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 |