diff options
author | Georg Brandl <georg@python.org> | 2009-07-18 09:06:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-07-18 09:06:31 (GMT) |
commit | a1a4bdb30cc0682be2c8c20fdba7adb2a4a643e1 (patch) | |
tree | 1f1985bd034a10a601717d6dbfec255e693ab728 /Doc/tutorial | |
parent | b4d0ef91a5e94ad10707909d688e26513d62e0cc (diff) | |
download | cpython-a1a4bdb30cc0682be2c8c20fdba7adb2a4a643e1.zip cpython-a1a4bdb30cc0682be2c8c20fdba7adb2a4a643e1.tar.gz cpython-a1a4bdb30cc0682be2c8c20fdba7adb2a4a643e1.tar.bz2 |
#6505: fix typos.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index b1bc522..bfbc9a6 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -148,9 +148,9 @@ Positional and keyword arguments can be arbitrarily combined:: ... other='Georg') The story of Bill, Manfred, and Georg. -An optional ``':'`` and format specifier can follow the field name. This also +An optional ``':'`` and format specifier can follow the field name. This allows greater control over how the value is formatted. The following example -truncates the Pi to three places after the decimal. +truncates Pi to three places after the decimal. >>> import math >>> print 'The value of PI is approximately {0:.3f}.'.format(math.pi) @@ -204,8 +204,8 @@ operation. For example:: The value of PI is approximately 3.142. Since :meth:`str.format` is quite new, a lot of Python code still uses the ``%`` -operator. However, because this old style of formatting will eventually removed -from the language :meth:`str.format` should generally be used. +operator. However, because this old style of formatting will eventually be +removed from the language, :meth:`str.format` should generally be used. More information can be found in the :ref:`string-formatting` section. |