[issue37182] ast - handling new line inside a string

Ilya Kamenshchikov report at bugs.python.org
Thu Jun 6 16:02:01 EDT 2019


Ilya Kamenshchikov <ikamenshchikov at gmail.com> added the comment:

Same problem holds for tabs (\\t vs \t).

For \\r vs \r, it is even more fun: 
txt1 = '"""\\r"""'
txt2 = '"""\r"""'

>>> b'\r'
>>> b'\n'

----------

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


More information about the Python-bugs-list mailing list