def __repr__(self):
        """Return a representation of this integer set. The representation is
        executable to get an equal integer set."""

        rv = []
        for start, stop in self._ranges:
            if ( isinstance(start,(int,long)) and isinstance(stop,(int,long))
                 and stop-start == 1 ):
                rv.append("%r" % start)
            elif isinstance(stop,(int,long)):
                rv.append("(%r,%r)" % (start,stop-1))
            else:
                rv.append("(%r,%r)" % (start,stop))
        if self._min is not _MININF:
            rv.append("min=%r" % self._min)
        if self._max is not _MAXINF:
            rv.append("max=%r" % self._max)
        return "%s(%s)" % (self.__class__.__name__,",".join(rv))
Return a representation of this integer set. The representation is
        executable to get an equal integer set.
recipes/Python/466286_Integer_set_type/recipe-466286.py