def __rxor__(self, i):
        """Return self(i) when ``i`` is an int.

        Examples
        ========

        >>> from sympy.combinatorics import Permutation
        >>> p = Permutation(1, 2, 9)
        >>> 2^p == p(2) == 9
        True
        """
        if int(i) == i:
            return self(i)
        else:
            raise NotImplementedError(
                i % "i^p = p(i) when i is an integer, not %s.")
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/permutations.py/Permutation.__rxor__/swapped operands of `%`