parameters: (self, other)
return_statement: return isequal
docstring: Compare function.
docstring_summary: Compare function.
docstring_tokens: Compare function .
function: def __eq__(self, other):
  		"""Compare function.
  		"""
  		if not isinstance(other, self.__class__):
  			return False
  			
  		isequal = cmp(self.socket._sock, other.socket._sock)
  		if isequal and self.server and other.server:
  			return cmp(self.server, other.server)
  		
  		return isequal
function_tokens: def __eq__ ( self , other ) : if not isinstance ( other , self . __class__ ) : return False isequal = cmp ( self . socket . _sock , other . socket . _sock ) if isequal and self . server and other . server : return cmp ( self . server , other . server ) return isequal