[Python-checkins] cpython (3.3): Issue #18031: %-formatting isn't dead yet and might pull through.
raymond.hettinger
python-checkins at python.org
Thu May 23 09:15:48 CEST 2013
http://hg.python.org/cpython/rev/e1d6140b02f0
changeset: 83900:e1d6140b02f0
branch: 3.3
parent: 83897:75c3e9a659bc
user: Raymond Hettinger <python at rcn.com>
date: Thu May 23 00:14:47 2013 -0700
summary:
Issue #18031: %-formatting isn't dead yet and might pull through.
files:
Doc/tutorial/inputoutput.rst | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -213,10 +213,6 @@
>>> print('The value of PI is approximately %5.3f.' % math.pi)
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 be
-removed from the language, :meth:`str.format` should generally be used.
-
More information can be found in the :ref:`old-string-formatting` section.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list