[issue21331] Reversing an encoding with unicode-escape returns a different result

Marc-Andre Lemburg report at bugs.python.org
Sat Jun 21 23:21:50 CEST 2014


Marc-Andre Lemburg added the comment:

The unicode-escape codec was used in Python 2 to convert Unicode literals in source code to Unicode objects. Before PEP 263, Unicode literals in source code were interpreted as Latin-1. See http://legacy.python.org/dev/peps/pep-0263/ for details.

The implementation is correct, but doesn't necessarily match today's realities anymore.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21331>
_______________________________________


More information about the Python-bugs-list mailing list