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

Function __Pyx_CyFunction_set_dict

eval/CIPO_evaluation/pycocotools/_mask.c:12459–12478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12457 return op->func_dict;
12458}
12459static int
12460__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
12461{
12462 PyObject *tmp;
12463 if (unlikely(value == NULL)) {
12464 PyErr_SetString(PyExc_TypeError,
12465 "function's dictionary may not be deleted");
12466 return -1;
12467 }
12468 if (unlikely(!PyDict_Check(value))) {
12469 PyErr_SetString(PyExc_TypeError,
12470 "setting function's dictionary to a non-dict");
12471 return -1;
12472 }
12473 tmp = op->func_dict;
12474 Py_INCREF(value);
12475 op->func_dict = value;
12476 Py_XDECREF(tmp);
12477 return 0;
12478}
12479static PyObject *
12480__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
12481{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected