Remove locking from buffer protocol as-per discussion.

This commit is contained in:
Travis E. Oliphant 2008-06-06 20:52:38 +00:00
parent b2750b5d33
commit 3900088cb6
6 changed files with 0 additions and 36 deletions

View file

@ -1779,11 +1779,6 @@ static const void *emptybuf = "";
static int
array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags)
{
if ((flags & PyBUF_LOCK)) {
PyErr_SetString(PyExc_BufferError,
"Cannot lock data");
return -1;
}
if (view==NULL) goto finish;
view->buf = (void *)self->ob_item;