(self, other)
return other == self._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
    # Special case for the same type which should be common and fast.
    if isinstance(other, self.__class__):
      return other._values == self._values
    # We are presumably comparing against some other sequence type.
    return other == self._values
def __eq__ ( self , other ) : if self is other : return True # Special case for the same type which should be common and fast. if isinstance ( other , self . __class__ ) : return other . _values == self . _values # We are presumably comparing against some other sequence type. return other == self . _values