| 1380 | } |
| 1381 | |
| 1382 | static PyObject* |
| 1383 | arraymultiter_new(PyTypeObject *NPY_UNUSED(subtype), PyObject *args, |
| 1384 | PyObject *kwds) |
| 1385 | { |
| 1386 | PyObject *ret, *fast_seq; |
| 1387 | Py_ssize_t n; |
| 1388 | |
| 1389 | if (kwds != NULL && PyDict_Size(kwds) > 0) { |
| 1390 | PyErr_SetString(PyExc_ValueError, |
| 1391 | "keyword arguments not accepted."); |
| 1392 | return NULL; |
| 1393 | } |
| 1394 | |
| 1395 | fast_seq = PySequence_Fast(args, ""); // needed for pypy |
| 1396 | if (fast_seq == NULL) { |
| 1397 | return NULL; |
| 1398 | } |
| 1399 | n = PySequence_Fast_GET_SIZE(fast_seq); |
| 1400 | if (n > NPY_MAXARGS) { |
| 1401 | Py_DECREF(fast_seq); |
| 1402 | return multiiter_wrong_number_of_args(); |
| 1403 | } |
| 1404 | ret = multiiter_new_impl(n, PySequence_Fast_ITEMS(fast_seq)); |
| 1405 | Py_DECREF(fast_seq); |
| 1406 | return ret; |
| 1407 | } |
| 1408 | |
| 1409 | static PyObject * |
| 1410 | arraymultiter_next(PyArrayMultiIterObject *multi) |
nothing calls this directly
no test coverage detected