summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-02 17:30:48 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-02 17:30:48 +0000
commita2031b1c6bba80f83f996acddd7f3efa0fb93be7 (patch)
tree6290b48e8cb60a75549d874d7d5a45dd414737ea
parenta1e9a90654afd97b7bf45d318019966684935c51 (diff)
downloadnumpy-a2031b1c6bba80f83f996acddd7f3efa0fb93be7.tar.gz
Make it so that .T is *always* .transpose()
-rw-r--r--numpy/core/src/arrayobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 5f9ccdad1..37e0ed569 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -6329,10 +6329,6 @@ array_flat_set(PyArrayObject *self, PyObject *val)
static PyObject *
array_transpose_get(PyArrayObject *self)
{
- if (self->nd < 2) {
- Py_INCREF(self);
- return (PyObject *)self;
- }
return PyArray_Transpose(self, NULL);
}