(self)
return 'Cycle%s' % s
We want it to print as a Cycle, not as a dict.

        Examples
        ========

        >>> from sympy.combinatorics import Cycle
        >>> Cycle(1, 2)
        Cycle(1, 2)
        >>> print(_)
        Cycle(1, 2)
        >>> list(Cycle(1, 2).items())
        [(1, 2), (2, 1)]
We want it to print as a Cycle, not as a dict.
We want it to print as a Cycle not as a dict .
def __repr__(self):
        """We want it to print as a Cycle, not as a dict.

        Examples
        ========

        >>> from sympy.combinatorics import Cycle
        >>> Cycle(1, 2)
        Cycle(1, 2)
        >>> print(_)
        Cycle(1, 2)
        >>> list(Cycle(1, 2).items())
        [(1, 2), (2, 1)]
        """
        if not self:
            return 'Cycle()'
        cycles = Permutation(self).cyclic_form
        s = ''.join(str(tuple(c)) for c in cycles)
        big = self.size - 1
        if not any(i == big for c in cycles for i in c):
            s += '(%s)' % big
        return 'Cycle%s' % s
def __repr__ ( self ) : if not self : return 'Cycle()' cycles = Permutation ( self ) . cyclic_form s = '' . join ( str ( tuple ( c ) ) for c in cycles ) big = self . size - 1 if not any ( i == big for c in cycles for i in c ) : s += '(%s)' % big return 'Cycle%s' % s