"Matt Gerrans" <matt_gerrans at hp.com> writes: > class mystr(str): > def HexRepr(self): > print 'A hex on ye!' Sure - but what if you want to refer to the internal representation as well? Regards, Martin