tah <tim.hochberg at gmail.com> writes: > This doesn't leave you with anything equivalent to 'not' however. Or > nothing consistent. Currently '~a' will complement a boolean array,: > > >>> ~a > array([False, True, True], dtype=bool) Can you use operator.not_(a) ?