| 3518 | } |
| 3519 | |
| 3520 | static PyObject * |
| 3521 | _subscript_by_index(PyArray_Descr *self, Py_ssize_t i) |
| 3522 | { |
| 3523 | PyObject *name = PySequence_GetItem(self->names, i); |
| 3524 | PyObject *ret; |
| 3525 | if (name == NULL) { |
| 3526 | PyErr_Format(PyExc_IndexError, |
| 3527 | "Field index %zd out of range.", i); |
| 3528 | return NULL; |
| 3529 | } |
| 3530 | ret = _subscript_by_name(self, name); |
| 3531 | Py_DECREF(name); |
| 3532 | return ret; |
| 3533 | } |
| 3534 | |
| 3535 | static npy_bool |
| 3536 | _is_list_of_strings(PyObject *obj) |
no test coverage detected