Re: [Numpy-discussion] checking for array type in C extension

2010-06-21 Thread Berthold Hoellmann
Robert Kern writes: > np.intc Great, Thanks Berthold Höllmann -- Germanischer Lloyd AG Berthold Höllmann Project Engineer, CAE Development Brooktorkai 18 20457 Hamburg Germany Phone: +49(0)40 36149-7374 Fax: +49(0)40 36149-7320 e-mail: berthold.hoellm...@gl-group.com Internet: http://www.gl-gr

Re: [Numpy-discussion] checking for array type in C extension

2010-06-18 Thread Berthold Hoellmann
Robert Kern writes: > On Fri, Jun 18, 2010 at 09:43, Berthold Hoellmann > wrote: >> Pauli Virtanen writes: >> >>> pe, 2010-06-18 kello 12:49 +0200, Berthold Hoellmann kirjoitti: >>> [clip] >>>> tst.inttestfunc(np.array((1,2),dtype=np.int)) &

Re: [Numpy-discussion] checking for array type in C extension

2010-06-18 Thread Berthold Hoellmann
Pauli Virtanen writes: > pe, 2010-06-18 kello 12:49 +0200, Berthold Hoellmann kirjoitti: > [clip] >> tst.inttestfunc(np.array((1,2),dtype=np.int)) >> tst.inttestfunc(np.array((1,2),dtype=np.int8)) >> tst.inttestfunc(np.array((1,2),dtype=np.int16)) >> tst.inttestfunc

[Numpy-discussion] checking for array type in C extension

2010-06-18 Thread Berthold Hoellmann
Hello, I do have problems for checking for integer array types in a C extension under Windows. I've put together a small example to illustrate the problem: h...@pc090498 ~/pytest $ cat tst.c #include #include "Python.h" #i