Re: PyObject_CallFunction and writable memory

2009-08-26 Thread Benjamin Peterson
Christopher Nebergall gmail.com> writes: > > I'm currently using > "PyObject_CallFunction(pFunc, "(s#)",p->lpbMemory, p->dwSize);" to > send an immutable string but I haven't seen what I need to set in the > format string which makes the data writable to python.The solution > can be for eith

Re: PyObject_CallFunction and writable memory

2009-08-26 Thread Diez B. Roggisch
Christopher Nebergall schrieb: I'm working a patch to a hex editor (frhed) written in c++ so it can load python scripts. Internally the c++ code has a unsigned char * of possibly serveral hundred megs which I want to send into the python code to modify.What is the best way to send the unsigne

PyObject_CallFunction and writable memory

2009-08-25 Thread Christopher Nebergall
I'm working a patch to a hex editor (frhed) written in c++ so it can load python scripts. Internally the c++ code has a unsigned char * of possibly serveral hundred megs which I want to send into the python code to modify.What is the best way to send the unsigned char * as writable memory into