'Return a string representation.'

def __repr__(self):

    parts = []
    parts.append(('definition=%r' % self.definition))
    parts.append(('state=%r' % self.state))
    parts.append(('id=%d' % self.id))
    return ('%s(%s)' % (self.__class__.__name__, ',    '.join(parts)))
