def intersects(self, other):
        '''Return boolean whether the "other" rect (an object with .x, .y,
        .width and .height attributes) overlaps this Rect in any way.
        '''
        if self._x + self._width < other.x: return False
        if self._x < other.x + other.width: return False
        if self._y + self._height < other.y: return False
        if other.y + other.height < self._y: return False
        return True

    # r/w, in pixels, y extent
dataset/ETHPy150Open ardekantur/pyglet/contrib/spryte/rect.py/Rect.intersects/swapped operands of `<`