docs error for PyBuffer_FillInfo?
lists at cheimes.de
Sun Jun 21 13:03:36 EDT 2009
Diez B. Roggisch wrote:
> And obviously enough, compiling my wrapper fails because there is an
> argument missing.
> So, I'm in need for a guide on how to use PyBuffer_FillInfo properly -
> all I've got is a void* and a total size of the buffer.
The second argument points to the (optional) object for that you are
creating the view. The code in Object/stringobject.c is a good example:
string_buffer_getbuffer(PyStringObject *self, Py_buffer *view, int flags)
return PyBuffer_FillInfo(view, (PyObject*)self,
(void *)self->ob_sval, Py_SIZE(self),
More information about the Python-list