[reportlab-users] symbol bullet point question

Christoph Zwerschke zwerschke at zuv.uni-heidelberg.de
Tue Mar 14 04:14:47 EST 2006


Tim Roberts wrote:
> Mike Dewhirst wrote:
>> I tried to use chr(267) but got ValueError: arg not in range(256) and it 
>> didn't like \267 (invalid token)
> 
> The 267 is octal -- base 8.  That's 183 decimal, or 0xB7 in hex.  That
> is, in fact, the "bullet" character in the symbol font.
> 
> You should be able to use chr(183) or '\xb7'.

You can also use octal numbers in Python, by writing chr(0267) (note the 
leading zero) or '\267' (note that this is inside string quotes).

-- Christoph


More information about the reportlab-users mailing list