Francois De Serres wrote:
> hiho,
> 
> what's the clean way to translate the tuple (0x73, 0x70, 0x61, 0x6D) to 
> the string 'spam'?

 >>> mytuple = (0x73, 0x70, 0x61, 0x6D)
 >>> ''.join(chr(v) for v in mytuple)
'spam'

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to