PEP263 (Specifying encoding) and bytecode strings

Bengt Richter bokr at oz.net
Tue May 6 00:09:49 EDT 2003


On 05 May 2003 23:36:28 +0200, martin at v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) wrote:

>"Tony Meyer" <ta-meyer at ihug.co.nz> writes:
>
>> Is there some way to specify that all strings are bytecodes, and not
>> encoded characters?
>
>Most certainly. Just use hex escapes (\xAB) in the source code,
>instead of using non-ASCII bytes. Hex escapes are the *only* way to
>denote bytes with ordinals >128 in Python.
>
>Don't make it look like characters if it isn't characters.
>
Has there been any suggestions for a multicharacter hex escape, e.g.,
'Something like \<ABCDEF> this?'

Regards,
Bengt Richter




More information about the Python-list mailing list