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

Function npy_PyErr_SetStringChained

numpy/core/src/multiarray/strfuncs.c:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16static void
17npy_PyErr_SetStringChained(PyObject *type, const char *message)
18{
19 PyObject *exc, *val, *tb;
20
21 PyErr_Fetch(&exc, &val, &tb);
22 PyErr_SetString(type, message);
23 npy_PyErr_ChainExceptionsCause(exc, val, tb);
24}
25
26
27/*NUMPY_API

Callers 2

array_reprFunction · 0.85
array_strFunction · 0.85

Calls 1

Tested by

no test coverage detected