MCPcopy Create free account
hub / github.com/numpy/numpy / array_getfield

Function array_getfield

numpy/core/src/multiarray/methods.c:444–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444static PyObject *
445array_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

Callers

nothing calls this directly

Calls 1

PyArray_GetFieldFunction · 0.85

Tested by

no test coverage detected