string repr in 2.1

Remco Gerlich scarblac at pino.selwerd.nl
Mon May 28 19:03:15 EDT 2001


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.

-- 
Remco Gerlich



More information about the Python-list mailing list