| 152 | } |
| 153 | |
| 154 | static PyObject * |
| 155 | array_put(PyArrayObject *self, PyObject *args, PyObject *kwds) |
| 156 | { |
| 157 | PyObject *indices, *values; |
| 158 | NPY_CLIPMODE mode = NPY_RAISE; |
| 159 | static char *kwlist[] = {"indices", "values", "mode", NULL}; |
| 160 | |
| 161 | if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO|O&:put", kwlist, |
| 162 | &indices, |
| 163 | &values, |
| 164 | PyArray_ClipmodeConverter, &mode)) |
| 165 | return NULL; |
| 166 | return PyArray_PutTo(self, values, indices, mode); |
| 167 | } |
| 168 | |
| 169 | static PyObject * |
| 170 | array_reshape(PyArrayObject *self, PyObject *args, PyObject *kwds) |
nothing calls this directly
no test coverage detected