[Python-Dev] PEP 263 - default encoding

Paul Prescod paul@prescod.net
Fri, 15 Mar 2002 09:31:19 -0800


"M.-A. Lemburg" wrote:
> 
>...
> 
> I have reworded the phase 1 implementation as follows:
> 
>     1. Implement the magic comment detection, but only apply the
>        detected encoding to Unicode literals in the source file.
> 
>        If no magic comment is used, Python should continue to
>        use the standard [raw-]unicode-escape codecs for Unicode
>        literals.

Are we thinking about Python's unicode literal syntax as just a codec? I
know that there is a codec that implements that syntax but I would hate
to find out that if I use KOI8-R, I no longer have the ability to use \U
in my code to insert Kanji.

 Paul Prescod