This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: docs - print() example wrong in whatsnew
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: evilnick, georg.brandl
Priority: normal Keywords:

Created on 2008-06-04 10:30 by evilnick, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg67688 - (view) Author: Nick Veitch (evilnick) Date: 2008-06-04 10:30
In the whatsnew/3.0.html doc, the example for print is the wrong way
around. Current version reads:
* The :func:`print` function doesn't support the "softspace" feature of
    the old ``print`` statement.  For example, in Python 2.x,
    ``print "A\n", "B"`` would write ``"A\nB\n"``; but in Python 3.0,
    ``print("A\n", "B")`` writes ``"A\n B\n"``.

should read:
* The :func:`print` function doesn't support the "softspace" feature of
    the old ``print`` statement.  For example, in Python 2.x,
    ``print "A\n", "B"`` would write ``"A\n B\n"``; but in Python 3.0,
    ``print("A\n", "B")`` writes ``"A\nB\n"``.
msg67689 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-06-04 11:21
Have you tried it? :)

The example is correct as it is.
History
Date User Action Args
2022-04-11 14:56:35adminsetgithub: 47286
2008-06-04 11:21:55georg.brandlsetstatus: open -> closed
resolution: not a bug
messages: + msg67689
2008-06-04 10:30:58evilnickcreate