MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyObject_HasAttrWithError

Function PyObject_HasAttrWithError

asyncpg/protocol/record/pythoncapi_compat.h:792–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790// PyObject_HasAttrStringWithError() to Python 3.13.0a1
791#if PY_VERSION_HEX < 0x030D00A1
792static inline int
793PyObject_HasAttrWithError(PyObject *obj, PyObject *attr)
794{
795 PyObject *res;
796 int rc = PyObject_GetOptionalAttr(obj, attr, &res);
797 Py_XDECREF(res);
798 return rc;
799}
800
801static inline int
802PyObject_HasAttrStringWithError(PyObject *obj, const char *attr)

Callers

nothing calls this directly

Calls 1

PyObject_GetOptionalAttrFunction · 0.85

Tested by

no test coverage detected