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

Function PyMapping_HasKeyWithError

asyncpg/protocol/record/pythoncapi_compat.h:769–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767// PyMapping_HasKeyStringWithError() to Python 3.13.0a1
768#if PY_VERSION_HEX < 0x030D00A1
769static inline int
770PyMapping_HasKeyWithError(PyObject *obj, PyObject *key)
771{
772 PyObject *res;
773 int rc = PyMapping_GetOptionalItem(obj, key, &res);
774 Py_XDECREF(res);
775 return rc;
776}
777
778static inline int
779PyMapping_HasKeyStringWithError(PyObject *obj, const char *key)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected