[Python-Dev] PEP 263 -- Python Source Code Encoding

M.-A. Lemburg mal@lemburg.com
Wed, 27 Feb 2002 22:59:34 +0100


Skip Montanaro wrote:
> 
>     Martin> If the default encoding is ASCII, and you have a 8-bit
>     Martin> character, the compiler will emit a warning if it is enhanced to
>     Martin> follow PEP 263. So what were you getting at?
> 
> I was thinking about strings used as byte containers for non-character data.

In string literals ? I think it is common to encode this sort of
data as hex or using octal escapes. Since these encodings are
plain 7-bit ASCII I don't see a problem.

Your hint about the manual is correct though: we'll have to adapt
that to the new reading as well.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/