parameters: (self, other)
return_statement: return other == self._values
docstring: Compares the current instance with another one.
docstring_summary: Compares the current instance with another one.
docstring_tokens: Compares the current instance with another one .
function: 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
function_tokens: 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