def __cmp__(self, other):
		"""
		Compare two CacheEntry objects by observatory, then
		description, then segment, then URL.
		"""
		if type(other) != CacheEntry:
			raise TypeError("can only compare CacheEntry to CacheEntry")
		return cmp((self.observatory, self.description, self.segment, self.url), (other.observatory, other.description, other.segment, other.url))
def __cmp__ ( self , other ) : if type ( other ) != CacheEntry : raise TypeError ( "can only compare CacheEntry to CacheEntry" ) return cmp ( ( self . observatory , self . description , self . segment , self . url ) , ( other . observatory , other . description , other . segment , other . url ) )
Compare two CacheEntry objects by observatory, then
		description, then segment, then URL.