'x.__str__() <==> str(x)'

def __str__(self):

    name = self.typeName
    items = str.join(',    ', [('%s=%s' % item) for item in self.items()])
    return ('<%s%s>' % (name, (('    ' + items) if items else '')))
