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

Function record_item

asyncpg/protocol/record/recordobj.c:289–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static PyObject *
290record_item(ApgRecordObject *op, Py_ssize_t i)
291{
292 ApgRecordObject *a = (ApgRecordObject *)op;
293 if (i < 0 || i >= Py_SIZE(a)) {
294 PyErr_SetString(PyExc_IndexError, "record index out of range");
295 return NULL;
296 }
297 return Py_NewRef(a->ob_item[i]);
298}
299
300static PyObject *
301record_richcompare(PyObject *v, PyObject *w, int op)

Callers 2

record_item_by_nameFunction · 0.85
record_subscriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected