Re: [Python-ideas] [Python-ideos] Dedicated overloadable boolean operators
30 Nov
2015
30 Nov
'15
4:32 p.m.
It seems to me there are two ideas being discussed. One is adding 2 new operators, something like && and ||, and providing them for some sort of "element wise" or other boolean context, and giving them a better order of evaluations than bitwise ops. This would have the advantage of being usable on the built in python lists/tuples if needed, but otherwise doesn't seem to solve all the issues above, including expressions like -1 < mat < 1, which work for python variables but not for things like Numpy arrays. (for example, selecting values from an array works like this: mat[(-1
3069
Age (days ago)
3069
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henry Schreiner