class Alpha(set):

    def __init__(self, name, s=()):
        super(Alpha, self).__init__(s)
self.name = name

def __repr__(self):
    return 'Alpha(%r, set(%r))' % (self.name, list(self))
Alpha('test', (1, 2))
Defining __repr__ when subclassing set in Python