MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / dictview_len

Function dictview_len

src/JSObjectKeysProxy.cc:224–230  ·  view source on GitHub ↗

private

Source from the content-addressed store, hash-verified

222
223// private
224static Py_ssize_t dictview_len(_PyDictViewObject *dv) {
225 Py_ssize_t len = 0;
226 if (dv->dv_dict != NULL) {
227 len = dv->dv_dict->ma_used;
228 }
229 return len;
230}
231
232PyObject *JSObjectKeysProxyMethodDefinitions::JSObjectKeysProxy_intersect(JSObjectKeysProxy *self, PyObject *other) {
233 PyObject *result;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected