def __eq__(self, other):
        return (self.x == other.x and self.y == other.y and
                self.width == other.width and self.height == other.height)

    # py3 compatibility: obj that defines __eq__ needs to define __hash__ to be
    # hashable, and we need that class RectCell(Rect, Cell) be hashable
Compare the two rects.
dataset/ETHPy150Open los-cocos/cocos/cocos/rect.py/Rect.__eq__