From 27277d9d5b2649fd1677fb88e46dc4f5d13e0c98 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 28 Dec 2009 07:59:20 +0000 Subject: [PATCH] #7577: fix signature info for getbufferproc. --- Doc/c-api/typeobj.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 2e2f9c4f0eb..378bfe1d893 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -1210,7 +1210,7 @@ member in the :ctype:`PyTypeObject` structure should be *NULL*. Otherwise, the This should fill a :ctype:`Py_buffer` with the necessary data for exporting the type. The signature of :data:`getbufferproc` is ``int - (PyObject *obj, PyObject *view, int flags)``. *obj* is the object to + (PyObject *obj, Py_buffer *view, int flags)``. *obj* is the object to export, *view* is the :ctype:`Py_buffer` struct to fill, and *flags* gives the conditions the caller wants the memory under. (See :cfunc:`PyObject_GetBuffer` for all flags.) :cmember:`bf_getbuffer` is