[Numpy-svn] r3212 - trunk/numpy/core/src

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Sep 23 13:04:32 CDT 2006


Author: oliphant
Date: 2006-09-23 13:04:13 -0500 (Sat, 23 Sep 2006)
New Revision: 3212

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Fix Ticket #288

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2006-09-23 17:59:06 UTC (rev 3211)
+++ trunk/numpy/core/src/arrayobject.c	2006-09-23 18:04:13 UTC (rev 3212)
@@ -3916,7 +3916,7 @@
         char *data;
 
         if (self->nd == 0) {
-                PyErr_SetString(PyExc_ValueError, "cannot slice a scalar");
+                PyErr_SetString(PyExc_ValueError, "cannot slice a 0-d array");
                 return NULL;
         }
 
@@ -5811,7 +5811,7 @@
 {
         if (arr->nd == 0) {
                 PyErr_SetString(PyExc_TypeError,
-                                "iteration over a scalar (0-dim array)");
+                                "iteration over a 0-d array");
                 return NULL;
         }
         return PySeqIter_New((PyObject *)arr);



More information about the Numpy-svn mailing list