'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'

def __rxor__(self, i):

    if (int(i) == i):
        return self(i)
    else:
        raise NotImplementedError(('i^p    =    p(i)    when    i    is    an    integer,    not    %s.' % i))
