mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fixing the spelling of "writeable" to "writable", particularly PyBUF_WRITEABLE.
This commit is contained in:
parent
a5b8e04bd5
commit
54cf12b625
13 changed files with 33 additions and 31 deletions
|
|
@ -183,8 +183,8 @@ _indirect_copy_nd(char *dest, PyBuffer *view, char fort)
|
|||
buffertype
|
||||
|
||||
PyBUF_READ buffer only needs to be read-only
|
||||
PyBUF_WRITE buffer needs to be writeable (give error if not contiguous)
|
||||
PyBUF_SHADOW buffer needs to be writeable so shadow it with
|
||||
PyBUF_WRITE buffer needs to be writable (give error if not contiguous)
|
||||
PyBUF_SHADOW buffer needs to be writable so shadow it with
|
||||
a contiguous buffer if it is not. The view will point to
|
||||
the shadow buffer which can be written to and then
|
||||
will be copied back into the other buffer when the memory
|
||||
|
|
@ -235,7 +235,7 @@ PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char fort)
|
|||
if (buffertype == PyBUF_WRITE) {
|
||||
PyObject_DEL(mem);
|
||||
PyErr_SetString(PyExc_BufferError,
|
||||
"writeable contiguous buffer requested for a non-contiguous" \
|
||||
"writable contiguous buffer requested for a non-contiguous" \
|
||||
"object.");
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue