[Harvey Thomas] > print [type(x) == type(1) and hex(x) or x for x in l] A tiny detail. I guess that `type(x) == type(1)' is better written `isinstance(x, int)' under Python 2.2. -- François Pinard http://www.iro.umontreal.ca/~pinard