>>> class FooBar(object):
... def __str__(self):
... return "foobar"
...
>>> def __unicode__(self):
... return unicode("foobar")
...
>>> str(FuBar), str(FuBar())
("<class 'util.FuBar'>", 'fubar')
>>> unicode(FuBar)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unbound method __unicode__() must be called with FuBar instance as first argument (got nothing instead)
>>> unicode(Uni())
u'fubar'