diff options
author | Stefan Krah <skrah@bytereef.org> | 2013-02-19 12:44:49 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2013-02-19 12:44:49 (GMT) |
commit | 674a42b1141c2caa6e439a0cc47b07f620520ca4 (patch) | |
tree | e6fd6e694680bb7fa1526245fb2d87d4d3859b69 /Objects | |
parent | 702a5dc1ed7907c4017106388329db73c038345c (diff) | |
download | cpython-674a42b1141c2caa6e439a0cc47b07f620520ca4.zip cpython-674a42b1141c2caa6e439a0cc47b07f620520ca4.tar.gz cpython-674a42b1141c2caa6e439a0cc47b07f620520ca4.tar.bz2 |
Fix error messages.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/memoryobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index dd6fe82..abd069b 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -307,7 +307,8 @@ equiv_structure(const Py_buffer *dest, const Py_buffer *src) if (!equiv_format(dest, src) || !equiv_shape(dest, src)) { PyErr_SetString(PyExc_ValueError, - "ndarray assignment: lvalue and rvalue have different structures"); + "memoryview assignment: lvalue and rvalue have different " + "structures"); return 0; } @@ -1433,7 +1434,7 @@ memory_getbuf(PyMemoryViewObject *self, Py_buffer *view, int flags) /* PyBUF_SIMPLE|PyBUF_FORMAT and PyBUF_WRITABLE|PyBUF_FORMAT do not make sense. */ PyErr_Format(PyExc_BufferError, - "ndarray: cannot cast to unsigned bytes if the format flag " + "memoryview: cannot cast to unsigned bytes if the format flag " "is present"); return -1; } |