summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-29 02:20:00 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-29 02:20:00 +0000
commit4aa3f16135c98a0a1d9c049dafe89cd272e01d87 (patch)
treecc18da0ca05a98498dc07ece8bc9ad5b3277d9dd /numpy/core/src/arraymethods.c
parentc1dff9e8f2f9231597adb132634305ba407a8cc5 (diff)
downloadnumpy-4aa3f16135c98a0a1d9c049dafe89cd272e01d87.tar.gz
Fix ravel function because method went back to old behavior.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index a118787c7..7ec1e9bc1 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -68,10 +68,11 @@ array_putmask(PyArrayObject *self, PyObject *args, PyObject *kwds)
}
static char doc_reshape[] = \
- "self.reshape(d1, d2, ..., dn, order='C') \n" \
- "Return a new array from this one. \n" \
- "\n The new array must have the same number of elements as self. " \
- "Also\n a copy of the data only occurs if necessary.";
+ "self.reshape(d1, d2, ..., dn, order='C') \n"
+ "Return a new array from this one. \n"
+ "\n The new array must have the same number of elements as self. "
+ "Also\n always returns a view or raises a ValueError if that is \n"
+ "impossible.";
static PyObject *
array_reshape(PyArrayObject *self, PyObject *args, PyObject *kwds)