code: def DiffPrimitiveArrays(self, oldObj, newObj):
        
        if len(oldObj) != len(newObj):
           __Log__.debug('DiffDoArrays: Array lengths do not match %d != %d'
              % (len(oldObj), len(newObj)))
           return False
        match = True
        if self._ignoreArrayOrder:
           oldSet = oldObj and frozenset(oldObj) or frozenset()
           newSet = newObj and frozenset(newObj) or frozenset()
           match = (oldSet == newSet)
        else:
           for i, j in zip(oldObj, newObj):
              if i != j:
                 match = False
                 break
        if not match:
           __Log__.debug(
              'DiffPrimitiveArrays: One of the elements do not match.')
           return False
        return True
docs: Diff two primitive arrays