PEP263 (Specifying encoding) and bytecode strings

Terry Reedy tjreedy at udel.edu
Tue May 6 10:15:10 EDT 2003


"Martin v. Löwis" <martin at v.loewis.de> wrote in message
news:m3znm0vdox.fsf at mira.informatik.hu-berlin.de...
> bokr at oz.net (Bengt Richter) writes:
>
> > Has there been any suggestions for a multicharacter hex escape,
e.g.,
> > 'Something like \<ABCDEF> this?'
>
> What would be the exact meaning of such an escape, and why would it
be
> useful?

I interpret this as encoding three bytes -- \xAB \xCD \xEF.  The
usefullness would be to only use 2+ chars per encoded byte instead of
4.  Same basic idea as hex int/long literals.

TJR






More information about the Python-list mailing list