def seq_allequal(seq1, seq2):
if seq1 is None:<EOL><INDENT>return seq2 is None<EOL><DEDENT>if seq2 is None:<EOL><INDENT>return False<EOL><DEDENT>if len(seq1) != len(seq2): return False<EOL>return npy.alltrue(npy.equal(seq1, seq2))<EOL>
seq1 and seq2 are either None or sequences or numerix arrays
Return True if both are None or both are seqs with identical
elements