[Numpy-discussion] Deprecate boolean math operators?

Alan G Isaac alan.isaac at gmail.com
Fri Dec 6 13:46:20 EST 2013


On 12/6/2013 1:35 PM, josef.pktd at gmail.com wrote:
> unary versus binary minus

Oh right; I consider binary `-` broken for
Boolean arrays. (Sorry Alexander; I did not
see your entire issue.)


> I'd rather write ~ than unary - if that's what it is.

I agree.  So I have no objection to elimination
of the `-`.  I see it does the subtraction and then
a boolean conversion, which is not helpful.
Or rather, I do not see how it can be helpful.

Alan Isaac



More information about the NumPy-Discussion mailing list