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

Function record_items_len

asyncpg/protocol/record/recordobj.c:943–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943static PyObject *
944record_items_len(ApgRecordItemsObject *it)
945{
946 Py_ssize_t len = 0;
947 if (it->it_seq) {
948 len = Py_SIZE(it->it_seq) - it->it_index;
949 }
950 return PyLong_FromSsize_t(len);
951}
952
953PyDoc_STRVAR(record_items_len_doc, "Private method returning an estimate of len(list(it())).");
954

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected