def __eq__(self, rhs):

        x, y, z = self._v
        xx, yy, zz = rhs
        return x==xx and y==yy and z==zz
Test for equality
dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/Chapter 10/gameobjects/vector3.py/Vector3.__eq__