diff options
| author | Georg Brandl <georg@python.org> | 2006-09-30 07:24:53 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-09-30 07:24:53 +0000 |
| commit | 3b3a7fc75e342fbff7b429acba67e8b18b4cbfa5 (patch) | |
| tree | bcbfd50ceb886d3e098508114a8e6f1d95ec419b /Doc | |
| parent | 712bb345d71e5d1774130dcbc0a71051d94ce444 (diff) | |
| download | cpython-git-3b3a7fc75e342fbff7b429acba67e8b18b4cbfa5.tar.gz | |
Bug #1567375: a minor logical glitch in example description.
(backport from rev. 52053)
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/tut/tut.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 94aebf8a86..4230c763f0 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -3017,6 +3017,7 @@ Here are two ways to write a table of squares and cubes: 8 64 512 9 81 729 10 100 1000 + >>> for x in range(1,11): ... print '%2d %3d %4d' % (x, x*x, x*x*x) ... @@ -3032,8 +3033,9 @@ Here are two ways to write a table of squares and cubes: 10 100 1000 \end{verbatim} -(Note that one space between each column was added by the way -\keyword{print} works: it always adds spaces between its arguments.) +(Note that in the first example, one space between each column was +added by the way \keyword{print} works: it always adds spaces between +its arguments.) This example demonstrates the \method{rjust()} method of string objects, which right-justifies a string in a field of a given width by padding |
