def seq_allequal(seq1, seq2):
 if (seq1 is None):
  return (seq2 is None)
 if (seq2 is None):
  return False
 if (len(seq1) != len(seq2)):
  return False
 return npy.alltrue(npy.equal(seq1, seq2))

def seq_allequal ( seq1 , seq2 ) : if ( seq1 is None ) : return ( seq2 is None ) if ( seq2 is None ) : return False if ( len ( seq1 ) != len ( seq2 ) ) : return False return npy . alltrue ( npy . equal ( seq1 , seq2 ) )
seq1 and seq2 are either none or sequences or numerix arrays return true if both are none or both are seqs with identical elements .