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.

Author johnboersma
Recipients docs@python, johnboersma
Date 2015-02-05.01:12:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423098744.16.0.128886256638.issue23396@psf.upfronthosting.co.za>
In-reply-to
Content
In the tutorial for 2.7.9, in the section on quotes and the escape character, there is the following example text: 
>>> '"Isn\'t," she said.'
'"Isn\'t," she said.'
>>> print '"Isn\'t," she said.'
"Isn't," she said.
>>> s = 'First line.\nSecond line.'  # \n means newline
>>> s  # without print(), \n is included in the output
'First line.\nSecond line.'
>>> print s  # with print, \n produces a new line
First line.
Second line.

Note the print() in a comment. Isn't that Python 3 syntax? Should just be print for 2.7, I believe.
History
Date User Action Args
2015-02-05 01:12:24johnboersmasetrecipients: + johnboersma, docs@python
2015-02-05 01:12:24johnboersmasetmessageid: <1423098744.16.0.128886256638.issue23396@psf.upfronthosting.co.za>
2015-02-05 01:12:24johnboersmalinkissue23396 messages
2015-02-05 01:12:23johnboersmacreate