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

Function WARN_IN_DEALLOC

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

Source from the content-addressed store, hash-verified

399*/
400
401static inline void
402WARN_IN_DEALLOC(PyObject* warning, const char * msg) {
403 if (PyErr_WarnEx(warning, msg, 1) < 0) {
404 PyObject * s;
405
406 s = PyUnicode_FromString("array_dealloc");
407 if (s) {
408 PyErr_WriteUnraisable(s);
409 Py_DECREF(s);
410 }
411 else {
412 PyErr_WriteUnraisable(Py_None);
413 }
414 }
415}
416
417/* array object functions */
418

Callers 1

array_deallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected