Hi,

> But dont forget to set base member pointer
> (PyObject *PyArray_BASE(PyObject* arr)) to point to the python data
> object, or else you leak a reference, and the memory will never get
> freed.

Right - for reference that's the

PyArray_Set_BASE(narr, data)

in the code I posted earlier (brought to you courtesy of Dag Sverre's
workaround.h trick).

Cheers,

Matthew
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to