#3503: fix print statements in 3k doc.

This commit is contained in:
Georg Brandl 2008-08-05 09:04:16 +00:00
parent 694f1f8c27
commit 11e18b0c2e
4 changed files with 6 additions and 9 deletions

View file

@ -208,7 +208,7 @@ to the right argument, and returns the string resulting from this formatting
operation. For example::
>>> import math
>>> print 'The value of PI is approximately %5.3f.' % math.pi
>>> 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 ``%``