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

Skip to content

Commit c1939b8

Browse files
committed
Issue #18031: %-formatting isn't dead yet and might pull through.
1 parent 7f0882c commit c1939b8

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
@@ -213,10 +213,6 @@ operation. For example::
213213
>>> print('The value of PI is approximately %5.3f.' % math.pi)
214214
The value of PI is approximately 3.142.
215215

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

222218

0 commit comments

Comments
 (0)