From: Raymond Hettinger Date: Thu, 23 May 2013 07:12:14 +0000 (-0700) Subject: Issue #18031: %-formatting isn't dead yet and might pull through. X-Git-Tag: v2.7.6rc1~377 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=668b0058a381b1e44e3d053cc949fb1875d7f107;p=thirdparty%2FPython%2Fcpython.git Issue #18031: %-formatting isn't dead yet and might pull through. --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index b1611f205908..45ca79244c46 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.