Fixing the spelling of "writeable" to "writable", particularly PyBUF_WRITEABLE.

This commit is contained in:
Sean Reifscheider 2007-09-17 17:55:36 +00:00
parent a5b8e04bd5
commit 54cf12b625
13 changed files with 33 additions and 31 deletions

View file

@ -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;
}