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

Function pyobject_array_insert

numpy/core/src/multiarray/arrayfunction_override.c:56–63  ·  view source on GitHub ↗

* Like list.insert(), but for C arrays of PyObject*. Skips error checking. */

Source from the content-addressed store, hash-verified

54 * Like list.insert(), but for C arrays of PyObject*. Skips error checking.
55 */
56static void
57pyobject_array_insert(PyObject **array, int length, int index, PyObject *item)
58{
59 for (int j = length; j > index; j--) {
60 array[j] = array[j - 1];
61 }
62 array[index] = item;
63}
64
65
66/*

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected