[issue39454] when \\u in byte_string , byte_string.decode('raw_unicode_escape') maybe has problem

SilentGhost report at bugs.python.org
Sat Jan 25 10:36:04 EST 2020


SilentGhost <ghost.adh at runbox.com> added the comment:

Why are you using this type of encoding on this bytes object? It specifically says in its description that "Existing backslashes are not escaped in any way.". If you'd use unicode_escape instead, you would be able to round-trip back to your original string.

----------
components: +Unicode
nosy: +SilentGhost, ezio.melotti, vstinner
status: open -> pending
type:  -> behavior

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


More information about the Python-bugs-list mailing list