[Jeff Kowalczyk] > I have a class instance attribute which is a string representation of a > hex value. I need to get the chr() character back. >>> ashex = '2a' >>> chr(eval('0x' + ashex)) '*' >>> chr(int(ashex, 16)) '*' >>> import binascii >>> binascii.unhexlify(ashex) '*' >>>