kwgoodman/la — Issue #35: Bug in comparison operators
Author: kwgoodman
Created: 2011-11-04 17:56:20+00:00
State: open

Numpy does this (note that the second example returns a bool not a shape (3,) array):

[29] a = np.array(['w', 'h', 'y'])
I[30] a == 'y'
O[30] array([False, False, True], dtype=bool)
I[31] a == 1
O[31] False

larry does this:

I[37] a = la.larry(['w', 'h', 'y'])
I[38] a == 'y' # Good
O[38]
label_0
0
1
2
x
array([False, False, True], dtype=bool)
I[39] a == 1 # Bug
O[39]
label_0
0
1
2
x
False