Wonderful, it works, thanks!
Michele
--- Discussion of Numerical Python
wrote:
> > Does anybody here have experience about offering
the array interface
> > from a SWIG-wrapped C struct?
>
> I have.
>
> > I have tried the following, borrowing code from numpy's arrayobject.c:
> >
> >
On 10/12/06, Michele Vallisneri <[EMAIL PROTECTED]> wrote:
> Does anybody here have experience about offering the array interface
> from a SWIG-wrapped C struct?
I have.
> I have tried the following, borrowing code from numpy's arrayobject.c:
>
> %extend real_vec_t {
>PyObject *__array_struct
Does anybody here have experience about offering the array interface
from a SWIG-wrapped C struct?
I have tried the following, borrowing code from numpy's arrayobject.c:
%extend real_vec_t {
PyObject *__array_struct__() {
/* From numpy/arrayobject.c/array_struct_get */
PyArrayInte