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 Magnien Sebastien
Recipients Magnien Sebastien, docs@python
Date 2019-02-11.10:12:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549879959.7.0.265215879488.issue35962@roundup.psfhosted.org>
In-reply-to
Content
The documentation reads :

" The backslash (\) character is used to escape characters that otherwise have a special meaning, such as newline, backslash itself, or the quote character. "

However, 'n' does not "otherwise have a special meaning", nor does it represent a new line.

The backslash character does in fact do two different things :

1) It removes special meanings from characters that have one (\\).
2) It assigns a special meaning to normal characters (\n).

A better description would therefore be :

" The backslash (\) character is used to either escape characters that have a special meaning, such as backslash itself, or the quote character - or give special meaning to characters that do not have one, such as 'n', whose escapment '\n' means 'newline'. "
History
Date User Action Args
2019-02-11 10:12:43Magnien Sebastiensetrecipients: + Magnien Sebastien, docs@python
2019-02-11 10:12:39Magnien Sebastiensetmessageid: <1549879959.7.0.265215879488.issue35962@roundup.psfhosted.org>
2019-02-11 10:12:39Magnien Sebastienlinkissue35962 messages
2019-02-11 10:12:39Magnien Sebastiencreate