aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-02-07 12:13:58 +0000
committerGeorg Brandl <georg@python.org>2011-02-07 12:13:58 +0000
commitca583b66c8debea9b083470f9fc3b8ab0589082b (patch)
treef3b90e394029148d08b29c4b41952a31f8e0ea97
parent#11138: fix order of fill and align specifiers. (diff)
downloadcpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.tar.gz
cpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.tar.bz2
cpython-ca583b66c8debea9b083470f9fc3b8ab0589082b.zip
#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 c3ab2648859..bcf70b5ecb4 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 4b6a6747a45..d45eb369239 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 |