[Python-checkins] cpython (3.3): Fix error messages.
stefan.krah
python-checkins at python.org
Tue Feb 19 14:03:46 CET 2013
http://hg.python.org/cpython/rev/8c4aa4cb7930
changeset: 82263:8c4aa4cb7930
branch: 3.3
parent: 82260:0e438442fddf
user: Stefan Krah <skrah at bytereef.org>
date: Tue Feb 19 13:44:49 2013 +0100
summary:
Fix error messages.
files:
Objects/memoryobject.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -307,7 +307,8 @@
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 @@
/* 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;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list