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: Simple typo in strings module documentation
Type: Stage: resolved
Components: Documentation Versions: Python 3.9
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Michael H2, docs@python, zach.ware
Priority: normal Keywords:

Created on 2019-11-12 14:41 by Michael H2, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg356461 - (view) Author: Michael H (Michael H2) Date: 2019-11-12 14:41
https://docs.python.org/3/tutorial/introduction.html#strings

In the strings part of the basic tutorial, there is an output error regarding the escaping of the single quote

>>> '"Isn\'t," they said.'
'"Isn\'t," they said.' # I think the output should be correct

Thanks
msg356462 - (view) Author: Michael H (Michael H2) Date: 2019-11-12 14:45
Sorry, its my bad, it is correct as it is, I hadn't read further on about the print statement being needed. As I am working through the tutorial in pycharm, I am had already used print statement.

Thanks!
msg356463 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-11-12 14:53
You're right, it is correct as is; the regular output of the REPL is essentially `print(repr(_))`.

Please do feel free to report any issues you find, though you may want to send a message to tutor@python.org to check anything you're not sure about.

Welcome to Python!
msg356465 - (view) Author: Michael H (Michael H2) Date: 2019-11-12 14:55
Many thanks!
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 82960
2019-11-12 14:55:46Michael H2setmessages: + msg356465
2019-11-12 14:53:01zach.waresetstatus: open -> closed

type: compile error ->

nosy: + zach.ware
messages: + msg356463
resolution: not a bug
stage: resolved
2019-11-12 14:45:15Michael H2setmessages: + msg356462
2019-11-12 14:41:03Michael H2create