def __sub__(self, other):
        if isinstance(other, Vec2d):
            return Vec2d(self.x - other.x, self.y - other.y)
        elif (hasattr(other, "__getitem__")):
            return Vec2d(self.x - other[0], self.y - other[1])
        else:
            return Vec2d(other - self.x, self.y - other)
dataset/ETHPy150Open viblo/pymunk/dump/body_bench_cffi.py/Vec2d.__sub__/swapped operands of `-`