s = "".join(x).decode("hex")
I am not sure I remember in which version of Python the hex codec was added, but it is handy.
Of course, binascii could do this since 2.0 or so, but not having to import another module *is* nice:
>>> 'ff12'.decode('hex') '\xff\x12'
>>> import binascii >>> binascii.unhexlify('ff12') '\xff\x12'
Thanks for pointing it out, Christos. -- http://mail.python.org/mailman/listinfo/python-list