Re: [Numpy-discussion] Contiguous memory zone with C API

2013-10-22 Thread marc.poi...@onera.fr
On 10/21/13 13:22, marc.poi...@onera.fr wrote: > Hi all, > > I try to change my old C API numpy code to the 'new' API. I used to hack some > internal stuff in Numpy (yes it's bad...) and I wonder now how to change it. > Ok, I've used PyDataMem_RENEW to realloc

[Numpy-discussion] Contiguous memory zone with C API

2013-10-21 Thread marc.poi...@onera.fr
Hi all, I try to change my old C API numpy code to the 'new' API. I used to hack some internal stuff in Numpy (yes it's bad...) and I wonder now how to change it. Let's take an example: I have ocount numpy arrays with data allocated elsewhere than numpy, the data pointer of the PyArrayObject i