[Numpy-discussion] Curious behavior of __radd__

2012-02-01 Thread Andreas Kloeckner
Hi all, here's something I don't understand. Consider the following code snippet: --- class A(object): def __radd__(self, other): print(type(other)) import numpy as np np.complex64(1j) + A() -

Re: [Numpy-discussion] dtype comparison, hash

2012-01-16 Thread Andreas Kloeckner
Hi Robert, On Fri, 30 Dec 2011 20:05:14 +, Robert Kern wrote: > On Fri, Dec 30, 2011 at 18:57, Andreas Kloeckner > wrote: > > Hi Robert, > > > > On Tue, 27 Dec 2011 10:17:41 +, Robert Kern > > wrote: > >> On Tue, Dec 27, 2011 at 01:22, Andre

Re: [Numpy-discussion] dtype comparison, hash

2011-12-30 Thread Andreas Kloeckner
Hi Robert, On Tue, 27 Dec 2011 10:17:41 +, Robert Kern wrote: > On Tue, Dec 27, 2011 at 01:22, Andreas Kloeckner > wrote: > > Hi all, > > > > Two questions: > > > > - Are dtypes supposed to be comparable (i.e. implement '==', '!='

[Numpy-discussion] dtype comparison, hash

2011-12-26 Thread Andreas Kloeckner
Hi all, Two questions: - Are dtypes supposed to be comparable (i.e. implement '==', '!=')? - Are dtypes supposed to be hashable? PyCUDA and PyOpenCL assume both in a few places, but at least hashability doesn't seem to be true. (If so, __hash__ should be implemented to throw an error. If not, w

[Numpy-discussion] Pthreads ATLAS

2010-09-06 Thread Andreas Kloeckner
Hi all, I've just tried to set up a Python 3 test environment for me to begin porting PyCUDA and PyOpenCL to Python 3, but numpy installation managed to foil my. I'm on Debian, and I believe that Debian purposefully compiles ATLAS without pthreads support. Whenever I build numpy 1.5, I encounter t