Re: [C++-sig] create boost array from a Numpy PyArray witho ut copying data?

2009-01-22 Thread Ravi
On Thursday 22 January 2009 05:51:20 Sebastian Walter wrote: > In my above case I know that *x won't be deleted because it is global, > right? *x is not deleted since you used PyArray_SimpleNewFromData; that *x is a global is irrelevant here. > Why exactly does the > *** glibc detected *** pytho

Re: [C++-sig] create boost array from a Numpy PyArray without copying data?

2009-01-22 Thread Sebastian Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ravi schrieb: > On Wednesday 21 January 2009 03:40:00 Sebastian Walter wrote: >> Apparently I have to increase the refcount manually when I return a raw >> PyObject. So I wrote getter functions like that: >> >> PyObject* get_rhs(){ >>