[issue44308] Raw Strings lack parody
STINNER Victor
report at bugs.python.org
Fri Jun 4 07:47:03 EDT 2021
STINNER Victor <vstinner at 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 <report at bugs.python.org>
<https://bugs.python.org/issue44308>
_______________________________________
More information about the Python-bugs-list
mailing list