[issue41881] New Line escape issue in raw strings

Serhiy Storchaka report at bugs.python.org
Mon Sep 28 18:25:15 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is expected behavior. \n in a raw string means two characters, backslash and "n", not a single newline character. Use non-raw string to embed a newline character.

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

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41881>
_______________________________________


More information about the Python-bugs-list mailing list