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

Function record_iter_len

asyncpg/protocol/record/recordobj.c:819–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819static PyObject *
820record_iter_len(ApgRecordIterObject *it)
821{
822 Py_ssize_t len = 0;
823 if (it->it_seq) {
824 len = Py_SIZE(it->it_seq) - it->it_index;
825 }
826 return PyLong_FromSsize_t(len);
827}
828
829PyDoc_STRVAR(record_iter_len_doc, "Private method returning an estimate of len(list(it)).");
830

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected