Re: [Numpy-discussion] constructing an array from memory

2010-09-24 Thread Robert Kern
On Fri, Sep 24, 2010 at 11:25, Mathew Yeates wrote: > I'm trying to do something ... unusual. > > gdb support scripting with Python. From within my python script, I can > get the address of a contiguous area of memory that stores a  fortran > array. I want to creat a NumPy array using "frombuffer"

Re: [Numpy-discussion] constructing an array from memory

2010-09-24 Thread Mathew Yeates
Thank a lot. I was wading through the Python C API. This is much simpler. -Mathew On Fri, Sep 24, 2010 at 10:21 AM, Zachary Pincus wrote: >> I'm trying to do something ... unusual. >> >> gdb support scripting with Python. From within my python script, I can >> get the address of a contiguous are

Re: [Numpy-discussion] constructing an array from memory

2010-09-24 Thread Zachary Pincus
> I'm trying to do something ... unusual. > > gdb support scripting with Python. From within my python script, I can > get the address of a contiguous area of memory that stores a fortran > array. I want to creat a NumPy array using "frombuffer". I see that > the CPython API supports the creation

[Numpy-discussion] constructing an array from memory

2010-09-24 Thread Mathew Yeates
I'm trying to do something ... unusual. gdb support scripting with Python. From within my python script, I can get the address of a contiguous area of memory that stores a fortran array. I want to creat a NumPy array using "frombuffer". I see that the CPython API supports the creation of a buffer