mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Remove locking from buffer protocol as-per discussion.
This commit is contained in:
parent
b2750b5d33
commit
3900088cb6
6 changed files with 0 additions and 36 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue