[Python-Dev] PEP 263 -- Python Source Code Encoding (original) (raw)
M.-A. Lemburg mal@lemburg.com
Wed, 27 Feb 2002 22:59:34 +0100
- Previous message: [Python-Dev] PEP 263 -- Python Source Code Encoding
- Next message: [Python-Dev] PEP 263 -- Python Source Code Encoding
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: [Python-Dev] PEP 263 -- Python Source Code Encoding
- Next message: [Python-Dev] PEP 263 -- Python Source Code Encoding
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]