On Thu, 2003-08-28 at 11:43, Nick Rout wrote:
> z is a one byte hex value. If I print z I get some weird character from
> the top end of the ascii table, which is expected. However I'd rather
> have the hex or decimal value,
> 
> how do I do this? something to do with a % sign and an x, but I cannot
> grok it at all.
>>> f = 0xF7
>>> print '%c' % f
?
>>> print '%d' % f
247
>>> print '%x' % f
f7

-- 
Michael JasonSmith                                   http://www.ldots.org/

Reply via email to