MCPcopy Create free account
hub / github.com/Sally-SH/VSP-LLM / __Pyx_PyObject_Call

Function __Pyx_PyObject_Call

fairseq/fairseq/data/data_utils_fast.cpp:25124–25144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25122/* PyObjectCall */
25123#if CYTHON_COMPILING_IN_CPYTHON
25124static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
25125 PyObject *result;
25126 ternaryfunc call = Py_TYPE(func)->tp_call;
25127 if (unlikely(!call))
25128 return PyObject_Call(func, arg, kw);
25129 #if PY_MAJOR_VERSION < 3
25130 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
25131 return NULL;
25132 #else
25133 if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
25134 return NULL;
25135 #endif
25136 result = (*call)(func, arg, kw);
25137 Py_LeaveRecursiveCall();
25138 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
25139 PyErr_SetString(
25140 PyExc_SystemError,
25141 "NULL result without error in PyObject_Call");
25142 }
25143 return result;
25144}
25145#endif
25146
25147/* PyObjectCallMethO */

Calls

no outgoing calls

Tested by

no test coverage detected