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 serhiy.storchaka
Recipients MartinAltmayer, ezio.melotti, mrabarnett, serhiy.storchaka
Date 2020-12-17.13:02:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608210151.6.0.543225168966.issue42668@roundup.psfhosted.org>
In-reply-to
Content
> If the escape-result still contains a verbatim newline, why escape this character at all?

Because in verbose mode it is ignored. This is why \n and other ASCII whitespace characters, and '#', which starts a comment, should be escaped.

'\\\n' and '\\n' has identical meaning independent of mode and context, so there is no bug here. Escaping '\n' as '\\\n' is slightly simpler.
History
Date User Action Args
2020-12-17 13:02:31serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, MartinAltmayer
2020-12-17 13:02:31serhiy.storchakasetmessageid: <1608210151.6.0.543225168966.issue42668@roundup.psfhosted.org>
2020-12-17 13:02:31serhiy.storchakalinkissue42668 messages
2020-12-17 13:02:31serhiy.storchakacreate