From 21fcdfb2c2f575716bdb2ccfc89c303f67f85798 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 15 Sep 2008 23:30:15 +0000 Subject: [PATCH] PyObject_ReleaseBuffer is now PyBuffer_Release --- pep-3118.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-3118.txt b/pep-3118.txt index 5d226acce..6dac0f10c 100644 --- a/pep-3118.txt +++ b/pep-3118.txt @@ -465,7 +465,7 @@ success. :: - void PyObject_ReleaseBuffer(PyObject *obj, Py_buffer *view) + void PyBuffer_Release(PyObject *obj, Py_buffer *view) This is a C-API version of the releasebuffer function call. It checks to make sure the object has the required function pointer and issues @@ -935,7 +935,7 @@ from a Python object, obj would do the following: /* After using the information and you don't need it anymore */ - if (PyObject_ReleaseBuffer(obj, &view) < 0) { + if (PyBuffer_Release(obj, &view) < 0) { /* error return */ }