Sturla Molden wrote: > Neal Becker skrev: > >> I didn't use either one. Cython used Py_DECREF automatically, because >> 'base' was and 'object'. >> >> >> > Ok, but forgive me for being ignorant: Why do you want write access to > base? Surely NumPy takes care of setting the base array for you. > The usecase here was wrapping a C library, and wrapping data returned by the C lib in an ndarray. Setting base is necesarry to free the memory...
Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
