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

Function record_contains

asyncpg/protocol/record/recordobj.c:279–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279static int
280record_contains(PyObject *self, PyObject *el)
281{
282 ApgRecordObject *a = (ApgRecordObject *)self;
283 if (a->desc == NULL || a->desc->keys == NULL) {
284 return 0;
285 }
286 return PySequence_Contains(a->desc->keys, el);
287}
288
289static PyObject *
290record_item(ApgRecordObject *op, Py_ssize_t i)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected