Just came across this one today: >>> np.in1d([1], set([0, 1, 2]), assume_unique=True) array([ False], dtype=bool) >>> np.in1d([1], [0, 1, 2], assume_unique=True) array([ True], dtype=bool)
I am assuming this has something to do with the fact that order is not guaranteed with set() objects? I was kind of hoping that setting "assume_unique=True" would be sufficient to overcome that problem. Should sets be rejected as an error? This was using v1.9.0 Cheers! Ben Root
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
