| 1226 | } |
| 1227 | |
| 1228 | static PyObject * |
| 1229 | array_copy(PyArrayObject *self, |
| 1230 | PyObject *const *args, Py_ssize_t len_args, PyObject *kwnames) |
| 1231 | { |
| 1232 | NPY_ORDER order = NPY_CORDER; |
| 1233 | NPY_PREPARE_ARGPARSER; |
| 1234 | |
| 1235 | if (npy_parse_arguments("copy", args, len_args, kwnames, |
| 1236 | "|order", PyArray_OrderConverter, &order, |
| 1237 | NULL, NULL, NULL) < 0) { |
| 1238 | return NULL; |
| 1239 | } |
| 1240 | |
| 1241 | return PyArray_NewCopy(self, order); |
| 1242 | } |
| 1243 | |
| 1244 | /* Separate from array_copy to make __copy__ preserve Fortran contiguity. */ |
| 1245 | static PyObject * |
nothing calls this directly
no test coverage detected