diff options
author | Stefan Krah <skrah@bytereef.org> | 2013-02-19 13:02:59 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2013-02-19 13:02:59 (GMT) |
commit | 5e06d1d0b9964513068a993074340b07e17fa04e (patch) | |
tree | f05c04c048ff287b3afe95b08602af9e630ad98e /Objects | |
parent | aaf16b9cfb1da564050a465e7dea194609d39b6a (diff) | |
parent | 674a42b1141c2caa6e439a0cc47b07f620520ca4 (diff) | |
download | cpython-5e06d1d0b9964513068a993074340b07e17fa04e.zip cpython-5e06d1d0b9964513068a993074340b07e17fa04e.tar.gz cpython-5e06d1d0b9964513068a993074340b07e17fa04e.tar.bz2 |
Merge 3.3.
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; } |