Re: [Numpy-discussion] Fwd: numpy.i and std::complex

2014-11-14 Thread Glen Mabey
Hello, Ok, here's my attempt -- https://github.com/gmabey/numpy/compare/swig-std-complex Glen On Oct 27, 2014, at 11:13 AM, Bill Spotz wrote: > Supporting std::complex<> was just low enough priority for me that I decided > to wait until someone expressed interest ... and now, many years lat

Re: [Numpy-discussion] truthiness of object arrays

2014-11-14 Thread Charles R Harris
On Thu, Nov 13, 2014 at 8:24 AM, Alan G Isaac wrote: > On 11/13/2014 1:19 AM, Antony Lee wrote: > > "t.__bool__()" also returns True > > > But t.__nonzero__() is being called in the `if` test. > The question is: is the difference between `__nonzero__` > and `__bool__` intentional. > > By the way,