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

Function record_new_iter

asyncpg/protocol/record/recordobj.c:853–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851};
852
853static PyObject *
854record_new_iter(ApgRecordObject *r, const record_module_state *state)
855{
856 ApgRecordIterObject *it;
857 it = PyObject_GC_New(ApgRecordIterObject, state->ApgRecordIter_Type);
858 if (it == NULL)
859 return NULL;
860 it->it_index = 0;
861 Py_INCREF(r);
862 it->it_seq = r;
863 PyObject_GC_Track(it);
864 return (PyObject *)it;
865}
866
867/* Record Items Iterator */
868

Callers 2

record_iterFunction · 0.85
record_valuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected