Commit 668b0058 authored by Raymond Hettinger's avatar Raymond Hettinger

Issue #18031: %-formatting isn't dead yet and might pull through.

parent 674f4fa2
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment