diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-29 02:15:19 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-29 02:15:19 +0000 |
commit | c1dff9e8f2f9231597adb132634305ba407a8cc5 (patch) | |
tree | 00ee206daf52bab18c2a6c7be4c2633d9bddbd8e /numpy/core/src/arraymethods.c | |
parent | f819562be99e8f0adde23264d3aab654c0d32071 (diff) | |
download | numpy-c1dff9e8f2f9231597adb132634305ba407a8cc5.tar.gz |
Change so that .ravel() has old behavior.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index 2d4c82054..a118787c7 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -103,14 +103,7 @@ array_reshape(PyArrayObject *self, PyObject *args, PyObject *kwds) goto fail; } } - - if (newshape.len == 1) { - PyDimMem_FREE(newshape.ptr); - return PyArray_Ravel(self, 0); - } - ret = PyArray_Newshape(self, &newshape, order); - PyDimMem_FREE(newshape.ptr); return ret; |