Python print isn\'t using __repr__, __unicode__ or __str__ for my unicode subclass when printing. Any clues as to what I am doing wron
You are subclassing unicode.
It'll never call __unicode__ because it already is unicode. What happens here instead is that the object is encoded to the stdout encoding:
>>> s.encode('utf8')
'HI'
except that it'll use direct C calls instead of the .encode() method. This is the default behaviour for print for unicode objects.
The print statement calls PyFile_WriteObject, which in turn calls PyUnicode_AsEncodedString when handling a unicode object. The latter then defers to an encoding function for the current encoding, and these use the Unicode C macros to access the data structures directly. You cannot intercept this from Python.
What you are looking for is an __encode__ hook, I guess. Since this is already a unicode subclass, print needs only to encode, not to convert it to unicode again, nor can it convert it to string without encoding it explicitly. You'd have to take this up with the Python core developers, to see if an __encode__ makes sense.