Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.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 | 98f6180b9b33 |
line wrap: on
line diff
--- a/Objects/stringobject.c Fri Sep 21 20:50:26 2007 +0000 +++ b/Objects/stringobject.c Sun Sep 23 02:00:13 2007 +0000 @@ -1160,7 +1160,7 @@ } static int -string_buffer_getbuffer(PyStringObject *self, PyBuffer *view, int flags) +string_buffer_getbuffer(PyStringObject *self, Py_buffer *view, int flags) { return PyBuffer_FillInfo(view, (void *)self->ob_sval, Py_Size(self), 0, flags); }
