(self, other)
return self._values == other._values
Compares the current instance with another one.
Compares the current instance with another one.
Compares the current instance with another one .
def __eq__(self, other):
    """Compares the current instance with another one."""
    if self is other:
      return True
    if not isinstance(other, self.__class__):
      raise TypeError('Can only compare repeated composite fields against '
                      'other repeated composite fields.')
    return self._values == other._values
def __eq__ ( self , other ) : if self is other : return True if not isinstance ( other , self . __class__ ) : raise TypeError ( 'Can only compare repeated composite fields against ' 'other repeated composite fields.' ) return self . _values == other . _values