MCPcopy Create free account
hub / github.com/catboost/catboost / Count

Function Count

library/python/runtime_py3/__res.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33PyObject* Count(PyObject* self[[maybe_unused]], PyObject *args[[maybe_unused]]) noexcept {
34 static_assert(
35 noexcept(NResource::Count()),
36 "Python3 Arcadia runtime binding assumes that NResource::Count do not throw exception. If this function start "
37 "to throw someone must add code translating C++ exceptions into Python exceptions here."
38 );
39 return PyLong_FromLong(NResource::Count());
40}
41
42PyObject* KeyByIndex(PyObject* self[[maybe_unused]], PyObject *const *args, Py_ssize_t nargs) noexcept {
43 if (nargs != 1) {

Callers 9

SaveMethod · 0.50
countMethod · 0.50
SaveMethod · 0.50
SaveMethod · 0.50
StoreMethod · 0.50
ListAllKeysMethod · 0.50
KeyByIndexMethod · 0.50
KeyByIndexMethod · 0.50
FilterByPrefixMethod · 0.50

Calls 1

noexceptFunction · 0.50

Tested by

no test coverage detected