[Python-checkins] r74075 - python/trunk/Doc/tutorial/inputoutput.rst
georg.brandl
python-checkins at python.org
Sat Jul 18 11:06:31 CEST 2009
Author: georg.brandl
Date: Sat Jul 18 11:06:31 2009
New Revision: 74075
Log:
#6505: fix typos.
Modified:
python/trunk/Doc/tutorial/inputoutput.rst
Modified: python/trunk/Doc/tutorial/inputoutput.rst
==============================================================================
--- python/trunk/Doc/tutorial/inputoutput.rst (original)
+++ python/trunk/Doc/tutorial/inputoutput.rst Sat Jul 18 11:06:31 2009
@@ -148,9 +148,9 @@
... 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 @@
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.
More information about the Python-checkins
mailing list