| 31 | } |
| 32 | |
| 33 | PyObject* 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 | |
| 42 | PyObject* KeyByIndex(PyObject* self[[maybe_unused]], PyObject *const *args, Py_ssize_t nargs) noexcept { |
| 43 | if (nargs != 1) { |
no test coverage detected