There was an error while loading. Please reload this page.
1 parent 702a5dc commit 674a42bCopy full SHA for 674a42b
1 file changed
Objects/memoryobject.c
@@ -307,7 +307,8 @@ equiv_structure(const Py_buffer *dest, const Py_buffer *src)
307
if (!equiv_format(dest, src) ||
308
!equiv_shape(dest, src)) {
309
PyErr_SetString(PyExc_ValueError,
310
- "ndarray assignment: lvalue and rvalue have different structures");
+ "memoryview assignment: lvalue and rvalue have different "
311
+ "structures");
312
return 0;
313
}
314
@@ -1433,7 +1434,7 @@ memory_getbuf(PyMemoryViewObject *self, Py_buffer *view, int flags)
1433
1434
/* PyBUF_SIMPLE|PyBUF_FORMAT and PyBUF_WRITABLE|PyBUF_FORMAT do
1435
not make sense. */
1436
PyErr_Format(PyExc_BufferError,
- "ndarray: cannot cast to unsigned bytes if the format flag "
1437
+ "memoryview: cannot cast to unsigned bytes if the format flag "
1438
"is present");
1439
return -1;
1440
0 commit comments