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

Function __Pyx_PyDict_GetItem

eval/CIPO_evaluation/pycocotools/_mask.c:11606–11625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11604/* DictGetItem */
11605#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
11606static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
11607 PyObject *value;
11608 value = PyDict_GetItemWithError(d, key);
11609 if (unlikely(!value)) {
11610 if (!PyErr_Occurred()) {
11611 if (unlikely(PyTuple_Check(key))) {
11612 PyObject* args = PyTuple_Pack(1, key);
11613 if (likely(args)) {
11614 PyErr_SetObject(PyExc_KeyError, args);
11615 Py_DECREF(args);
11616 }
11617 } else {
11618 PyErr_SetObject(PyExc_KeyError, key);
11619 }
11620 }
11621 return NULL;
11622 }
11623 Py_INCREF(value);
11624 return value;
11625}
11626#endif
11627
11628/* PyObjectCall2Args */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected