Re: [Numpy-discussion] swig svn commits

2007-03-24 Thread Bill Spotz
OK. So if I understand this correctly, PyArray_EquivTypenums() can't do native byte order checking. But I'm assuming PyArray_EquivTypes() could. Unfortunately, the numpy.i typemaps are based on the enumerated typenums, not PyArray_Descr objects. There are a couple of other places where th

Re: [Numpy-discussion] swig svn commits

2007-03-24 Thread Sebastian Haase
On 3/24/07, Bill Spotz <[EMAIL PROTECTED]> wrote: > No, I don't consider native byte order. What was your solution? > I think there is only one solution: If somebody requests INPLACE handling but provides data of wrong byteorder, I have to throw an exception -- in SWIG terms, the typecheck return

Re: [Numpy-discussion] swig svn commits

2007-03-24 Thread Bill Spotz
No, I don't consider native byte order. What was your solution? The typecheck typemap is so that swig can perform isolated type checking when it is creating dispatch code for overloaded functions. The typechecks I added for INPLACE arrays require that the argument be a numpy array and that

[Numpy-discussion] swig svn commits

2007-03-23 Thread Sebastian Haase
Hi, this is regarding the svn commit by wfspotz. Author: [EMAIL PROTECTED] Date: 2007-03-23 13:04:37 -0500 (Fri, 23 Mar 2007) New Revision: 3593 Modified: trunk/numpy/doc/swig/numpy.i Log: Added typecheck typemaps to INPLACE_ARRAY typemap suites Hi wfspotz, I was just wondering if you consider