<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def DiffPrimitiveArrays(self, oldObj, newObj):
 """Diff two primitive arrays"""

      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