From 668b0058a381b1e44e3d053cc949fb1875d7f107 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 23 May 2013 00:12:14 -0700 Subject: Issue #18031: %-formatting isn't dead yet and might pull through. --- Doc/tutorial/inputoutput.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index b1611f2..45ca792 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -215,10 +215,6 @@ operation. For example:: >>> 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. -- cgit v0.12