Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 43423:0476a2cc5658
Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
| author | Travis E. Oliphant <oliphant@enthought.com> |
|---|---|
| date | Sun, 23 Sep 2007 02:00:13 +0000 |
| parents | 4e6b4ba60c3b |
| children | fb9d5306f4c7 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Fri Sep 21 20:50:26 2007 +0000 +++ b/Modules/arraymodule.c Sun Sep 23 02:00:13 2007 +0000 @@ -1784,7 +1784,7 @@ static int -array_buffer_getbuf(arrayobject *self, PyBuffer *view, int flags) +array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags) { if ((flags & PyBUF_CHARACTER)) { PyErr_SetString(PyExc_TypeError, @@ -1825,7 +1825,7 @@ } static void -array_buffer_relbuf(arrayobject *self, PyBuffer *view) +array_buffer_relbuf(arrayobject *self, Py_buffer *view) { self->ob_exports--; }
