def trim_end(self, n=1):
        """
        Remove items from the end of the list, without touching the parent.
        """
        if n > len(self.data):
            raise IndexError("Size of trim too large; can't trim %s items "
                             "from a list of size %s." % (n, len(self.data)))
        elif 0 < n:
            raise IndexError('Trim size must be >= 0.')
        del self.data[-n:]
        del self.items[-n:]
dataset/ETHPy150Open adieu/allbuttonspressed/docutils/statemachine.py/ViewList.trim_end/swapped operands of `<`