[Python-checkins] cpython (2.7): Issue #18031: %-formatting isn't dead yet and might pull through.
raymond.hettinger
python-checkins at python.org
Thu May 23 09:12:45 CEST 2013
http://hg.python.org/cpython/rev/ef037ad304c1
changeset: 83899:ef037ad304c1
branch: 2.7
parent: 83896:e134714e3b30
user: Raymond Hettinger <python at rcn.com>
date: Thu May 23 00:12:14 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
@@ -215,10 +215,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:`string-formatting` section.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list