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

Function PyArray_SetUpdateIfCopyBase

numpy/core/src/multiarray/arrayobject.c:83–95  ·  view source on GitHub ↗

NUMPY_API */

Source from the content-addressed store, hash-verified

81
82/*NUMPY_API */
83NPY_NO_EXPORT int
84PyArray_SetUpdateIfCopyBase(PyArrayObject *arr, PyArrayObject *base)
85{
86 /* 2021-Dec-15 1.23*/
87 PyErr_SetString(PyExc_RuntimeError,
88 "PyArray_SetUpdateIfCopyBase is disabled, use "
89 "PyArray_SetWritebackIfCopyBase instead, and be sure to call "
90 "PyArray_ResolveWritebackIfCopy before the array is deallocated, "
91 "i.e. before the last call to Py_DECREF. If cleaning up from an "
92 "error, PyArray_DiscardWritebackIfCopy may be called instead to "
93 "throw away the scratch buffer.");
94 return -1;
95}
96
97/*NUMPY_API
98 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected