[issue7615] unicode_escape codec does not escape quotes

Irit Katriel report at bugs.python.org
Mon Aug 9 15:30:03 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

Looks like this has been fixed by now:

>>> print(u'a\'b"c\'\'\'d"""e'.encode('unicode_escape'))
b'a\'b"c\'\'\'d"""e'

Let me know if there is a reason not to close this issue.

----------
nosy: +iritkatriel
resolution:  -> out of date
status: open -> pending

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


More information about the Python-bugs-list mailing list