STINNER Victor <vstin...@python.org> added the comment:
You can use br"\n" to get 2 bytes: b"\\" and b"n". IMO it's the best practice, to use raw strings for regular expressions. Converting a regular string to a raw string sounds like a bad idea. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44308> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com