Re: help with c <-> python buffer transfer

2006-08-11 Thread John Machin
[EMAIL PROTECTED] wrote: > This is the part I need help with. I've also used PyBuffer_... > subroutines which gave similar problems. Thanks for all of your other > comments, but I was hoping someone could just tell me what was wrong > with the code without having to worry about all of the other

Re: help with c <-> python buffer transfer

2006-08-11 Thread [EMAIL PROTECTED]
John Machin wrote: > [EMAIL PROTECTED] wrote: > > How does one transfer a buffer object from python -> c and back again > > (assuming the data gets modified)? > > I can't seem to get this or anything else to work, but am clueless as > > to what I'm doing wrong > > > > > > using namespace boost::pyt

Re: help with c <-> python buffer transfer

2006-08-11 Thread John Machin
[EMAIL PROTECTED] wrote: > How does one transfer a buffer object from python -> c and back again > (assuming the data gets modified)? > I can't seem to get this or anything else to work, but am clueless as > to what I'm doing wrong > > > using namespace boost::python; Looks like C++, not C. > > s

help with c <-> python buffer transfer

2006-08-11 Thread tkirke
How does one transfer a buffer object from python -> c and back again (assuming the data gets modified)? I can't seem to get this or anything else to work, but am clueless as to what I'm doing wrong using namespace boost::python; static PyObject * proc_buf(PyObject *self, PyObject *args) { P