string repr in 2.1
Robin Becker
robin at jessikat.fsnet.co.uk
Mon May 28 19:47:39 EDT 2001
In article <slrn9h5m4o.1hk.scarblac at pino.selwerd.nl>, Remco Gerlich
<scarblac at pino.selwerd.nl> writes
>Robin Becker <robin at jessikat.fsnet.co.uk> wrote in comp.lang.python:
>> Someone informs me that reportlab can't hack '£' (chr(163)) in 2.1 and
>> as I don't have it installed can someone confirm that
>>
>> repr('£') is not '\243', but something related to '\xa3' instead.
>
>>>> '\243' == '\xa3'
>1
>
>Since 2.1, string repr uses heximal escapes instead of octal ones.
>
yes I guess all those *nix tools that like octal should be whipped and
made to obey the malevolent dictator.
--
Robin Becker
More information about the Python-list
mailing list