Marc-Andre Lemburg added the comment: On 24.06.2014 11:44, Serhiy Storchaka wrote: > > Note that 'raw-unicode-escape' is used in pickle protocol 0. Changing it can > break compatibility.
Indeed. unicode-escape was also designed to be able to read back raw-unicode-escape encoded data, so changing the decoder to not accept Latin-1 code points would break that as well. It may be better to simply create a new codec that rejects non-ASCII encoded bytes when decoding and perhaps call that 'unicode-repr'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21331> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com