def __eq__(self, other):
        """Return true if the given object has the same coordinates as this 
        vector."""
        try:
            other = cast_anything_to_vector(other)
            return self.x == other.x and self.y == other.y
        except VectorCastError:
            return False
def __eq__ ( self , other ) : try : other = cast_anything_to_vector ( other ) return self . x == other . x and self . y == other . y except VectorCastError : return False
Return true if the given object has the same coordinates as this 
        vector.