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

2009-01-21 Thread Ravi
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(){ > return incref((PyObject *) _array_my_rhs); > } > I'm

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

2009-01-21 Thread Sebastian Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ravi schrieb: > On Tuesday 20 January 2009 04:27:02 Sebastian Walter wrote: >> Thanks for the hint :), >> Your code is a little to heavyweight for my purposes, >> but I learned quite a lot how boost::python converters work. >> >> And it also gave me th