| 442 | } |
| 443 | |
| 444 | static PyObject * |
| 445 | array_getfield(PyArrayObject *self, PyObject *args, PyObject *kwds) |
| 446 | { |
| 447 | |
| 448 | PyArray_Descr *dtype = NULL; |
| 449 | int offset = 0; |
| 450 | static char *kwlist[] = {"dtype", "offset", 0}; |
| 451 | |
| 452 | if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&|i:getfield", kwlist, |
| 453 | PyArray_DescrConverter, &dtype, |
| 454 | &offset)) { |
| 455 | Py_XDECREF(dtype); |
| 456 | return NULL; |
| 457 | } |
| 458 | |
| 459 | return PyArray_GetField(self, dtype, offset); |
| 460 | } |
| 461 | |
| 462 | |
| 463 | /*NUMPY_API |
nothing calls this directly
no test coverage detected