Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 668b005

Browse files
committed
Issue python#18031: %-formatting isn't dead yet and might pull through.
1 parent 674f4fa commit 668b005

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Doc/tutorial/inputoutput.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@ operation. For example::
215215
>>> print 'The value of PI is approximately %5.3f.' % math.pi
216216
The value of PI is approximately 3.142.
217217

218-
Since :meth:`str.format` is quite new, a lot of Python code still uses the ``%``
219-
operator. However, because this old style of formatting will eventually be
220-
removed from the language, :meth:`str.format` should generally be used.
221-
222218
More information can be found in the :ref:`string-formatting` section.
223219

224220

0 commit comments

Comments
 (0)