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

Function __Pyx_PyObject_CallMethO

fairseq/fairseq/data/data_utils_fast.cpp:25149–25169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25147/* PyObjectCallMethO */
25148#if CYTHON_COMPILING_IN_CPYTHON
25149static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
25150 PyObject *self, *result;
25151 PyCFunction cfunc;
25152 cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
25153 self = __Pyx_CyOrPyCFunction_GET_SELF(func);
25154 #if PY_MAJOR_VERSION < 3
25155 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
25156 return NULL;
25157 #else
25158 if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
25159 return NULL;
25160 #endif
25161 result = cfunc(self, arg);
25162 Py_LeaveRecursiveCall();
25163 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
25164 PyErr_SetString(
25165 PyExc_SystemError,
25166 "NULL result without error in PyObject_Call");
25167 }
25168 return result;
25169}
25170#endif
25171
25172/* PyObjectFastCall */

Callers 1

Calls 1

Tested by

no test coverage detected