def __le__(self, other):
        """Return True if self is less than other when the partition
        is listed from smallest to biggest.

        Examples
        ========

        >>> from sympy.combinatorics.partitions import IntegerPartition
        >>> a = IntegerPartition([4])
        >>> a <= a
        True
        """
        return list(reversed(other.partition)) <= list(reversed(self.partition))
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/partitions.py/IntegerPartition.__le__/swapped operands of `<=`