Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

> 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.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42668>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to