summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorStan Seibert <sseibert@anaconda.com>2018-10-29 08:55:13 -0500
committerStan Seibert <sseibert@anaconda.com>2018-10-29 09:09:23 -0500
commit94c18654c7564c3380c0bf5e655736196c821c4b (patch)
treed7444d55a3abbaedff69e51d8100b49be2ef2c5e /numpy
parentdd14431323fdca18d76ee1b99a28d8e2308abea5 (diff)
downloadnumpy-94c18654c7564c3380c0bf5e655736196c821c4b.tar.gz
ENH: array does not need to be writable to use as input to take
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/item_selection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c
index de54ca1b3..a7c6b14f4 100644
--- a/numpy/core/src/multiarray/item_selection.c
+++ b/numpy/core/src/multiarray/item_selection.c
@@ -45,7 +45,7 @@ PyArray_TakeFrom(PyArrayObject *self0, PyObject *indices0, int axis,
indices = NULL;
self = (PyArrayObject *)PyArray_CheckAxis(self0, &axis,
- NPY_ARRAY_CARRAY);
+ NPY_ARRAY_CARRAY_RO);
if (self == NULL) {
return NULL;
}