def __cmp__(self, other):
        """
        Use the compare method to be able to see if two query items are
        the same vs. ==, since == is used to set the query's is value.
        
        :param      other       <variant>
        
        :return     <int> 1 | 0 | -1
        """
        if not isinstance(other, Query):
            return -1
        elif id(self) == id(other):
            return 0
        else:
            return 1
def __cmp__ ( self , other ) : if not isinstance ( other , Query ) : return - 1 elif id ( self ) == id ( other ) : return 0 else : return 1
Use the compare method to be able to see if two query items are
        the same vs. ==, since == is used to set the query's is value.
        
        :param      other       <variant>
        
        :return     <int> 1 | 0 | -1