(colors1, values1, color2, values2)
return (values1[:shorter_length] == values2[:shorter_length]
                and (numpy.array(colors1[:shorter_length]) ==
                     numpy.array(color2[:shorter_length])).all())
Test whether colors for values match. Colors matches when all
        values match for shorter list and colors match for shorter list.
        It is assumed that values will be sorted together with their colors.
Test whether colors for values match. Colors matches when all
        values match for shorter list and colors match for shorter list.
        It is assumed that values will be sorted together with their colors.
Test whether colors for values match . Colors matches when all values match for shorter list and colors match for shorter list . It is assumed that values will be sorted together with their colors .
def _colors_match(colors1, values1, color2, values2):
        """
        Test whether colors for values match. Colors matches when all
        values match for shorter list and colors match for shorter list.
        It is assumed that values will be sorted together with their colors.
        """
        shorter_length = min(len(colors1), len(color2))
        return (values1[:shorter_length] == values2[:shorter_length]
                and (numpy.array(colors1[:shorter_length]) ==
                     numpy.array(color2[:shorter_length])).all())
def _colors_match ( colors1 , values1 , color2 , values2 ) : shorter_length = min ( len ( colors1 ) , len ( color2 ) ) return ( values1 [ : shorter_length ] == values2 [ : shorter_length ] and ( numpy . array ( colors1 [ : shorter_length ] ) == numpy . array ( color2 [ : shorter_length ] ) ) . all ( ) )