MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __Pyx_CyFunction_set_name

Function __Pyx_CyFunction_set_name

eval/CIPO_evaluation/pycocotools/_mask.c:12392–12411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12390 return op->func_name;
12391}
12392static int
12393__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
12394{
12395 PyObject *tmp;
12396#if PY_MAJOR_VERSION >= 3
12397 if (unlikely(value == NULL || !PyUnicode_Check(value)))
12398#else
12399 if (unlikely(value == NULL || !PyString_Check(value)))
12400#endif
12401 {
12402 PyErr_SetString(PyExc_TypeError,
12403 "__name__ must be set to a string object");
12404 return -1;
12405 }
12406 tmp = op->func_name;
12407 Py_INCREF(value);
12408 op->func_name = value;
12409 Py_XDECREF(tmp);
12410 return 0;
12411}
12412static PyObject *
12413__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
12414{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected