I think I see a bug in lib.user_array.container class. The __eq__
method is
def __eq__(self,other): return self._rc(equal(self.array,other))
the expression equal(self.array,other) will return an ndarray of
bools, which is then converted, by way of self._rc(), to whatever the
derived class is. In my case, this does not make sense, because an
array of bools is not a valid argument to the constructor (actually,
the data buffer is accepted, but the results are not reliable). What
I want, and it seem most people would want in this situation, is just
the array of bools; i.e. don't apply the self._rc() method.
Assuming there is agreement that this is the desirable behavior, the
same would be true for __lt__, __le__, etc.
I will probably override this behavior by defining my own __eq__,
etc., in my derived class, just for safety.
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-5451 **
** Albuquerque, NM 87185-0370 Email: [EMAIL PROTECTED] **
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion