Marc-Andre Lemburg added the comment:

Jan, the codec implements an encoding which has certain characteristics just 
like any other codec. It works both in Python 2 and 3 without problems.

The documentation is no longer true, though. Ever since we added encoding 
markers to source files, the raw Unicode string literals depended on this 
encoding setting. Before this change the docs were fine, since Unicode literals 
were interpreted as Latin-1 encoded.

More correct would be: "Produce a string that uses Unicode escapes to encode 
non-Latin-1 code points. It is used in the Python pickle protocol."

----------
nosy: +lemburg
title: The 'raw_unicode_escape' codec buggy + not apropriate for Python 3.x -> 
The 'raw_unicode_escape' codec buggy + not appropriate for Python 3.x

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19539>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to