[Python-Dev] Raw string syntax inconsistency

Terry Reedy tjreedy at udel.edu
Mon Jun 18 08:23:59 CEST 2012


On 6/18/2012 2:06 AM, "Martin v. Löwis" wrote:

>> Hm. I still encounter enough environments that don't know how to display
>> such characters that I would prefer to have a rock solid \u escape
>> mechanism.
>
> If you want to use them under the revised PEP 414, you will have to
> avoid making them raw, and just use a plain u prefix. IOW, you need
> to double all backslashes that you want to stand on their own, and
> then use \u escapes to denote non-typable characters.

And such literals will mean the same thing in 2.x and 3.3+.

-- 
Terry Jan Reedy






More information about the Python-Dev mailing list