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

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Aug 2 12:30:50 CDT 2006


Author: oliphant
Date: 2006-08-02 12:30:48 -0500 (Wed, 02 Aug 2006)
New Revision: 2944

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Make it so that .T is *always* .transpose()

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2006-08-02 16:37:59 UTC (rev 2943)
+++ trunk/numpy/core/src/arrayobject.c	2006-08-02 17:30:48 UTC (rev 2944)
@@ -6329,10 +6329,6 @@
 static PyObject *
 array_transpose_get(PyArrayObject *self)
 {
-        if (self->nd < 2) {
-                Py_INCREF(self);
-                return (PyObject *)self;
-        }
         return PyArray_Transpose(self, NULL);
 }
 



More information about the Numpy-svn mailing list