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

Function __Pyx_PyObject_GetAttrStr

eval/CIPO_evaluation/pycocotools/_mask.c:10596–10605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10594/* PyObjectGetAttrStr */
10595#if CYTHON_USE_TYPE_SLOTS
10596static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
10597 PyTypeObject* tp = Py_TYPE(obj);
10598 if (likely(tp->tp_getattro))
10599 return tp->tp_getattro(obj, attr_name);
10600#if PY_MAJOR_VERSION < 3
10601 if (likely(tp->tp_getattr))
10602 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
10603#endif
10604 return PyObject_GetAttr(obj, attr_name);
10605}
10606#endif
10607
10608/* GetBuiltinName */

Calls

no outgoing calls

Tested by

no test coverage detected