mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -230,9 +230,6 @@ PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char fort)
|
|||
case PyBUF_WRITE:
|
||||
flags = PyBUF_FULL;
|
||||
break;
|
||||
case PyBUF_SHADOW:
|
||||
flags = PyBUF_FULL_XLCK;
|
||||
break;
|
||||
}
|
||||
|
||||
if (PyObject_GetBuffer(obj, view, flags) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue