diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-20 03:31:30 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-20 03:31:30 +0000 |
commit | 502af603c2b1cc85696fc62f4b0a79842887f07b (patch) | |
tree | 2114e089c1ba25aa4e1d605f1993cdb5e34dca3c /numpy/core/src/arraymethods.c | |
parent | 45475dd140ce5ce8e9f2f9cbd5573e5b288c87dd (diff) | |
download | numpy-502af603c2b1cc85696fc62f4b0a79842887f07b.tar.gz |
Fix so that arrays never become scalars using .copy() command
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index 27e8d4866..c4ce3e072 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -641,7 +641,7 @@ array_copy(PyArrayObject *self, PyObject *args) int fortran=0; if (!PyArg_ParseTuple(args, "|i", &fortran)) return NULL; - return _ARET(PyArray_NewCopy(self, fortran)); + return PyArray_NewCopy(self, fortran); } static char doc_resize[] = "self.resize(new_shape). "\ |