| 663 | if (r != 0) return raise_py_error(); |
| 664 | return lean_io_result_mk_ok(lean_box(0)); |
| 665 | } |
| 666 | |
| 667 | LEAN_EXPORT lean_obj_res lean_py_length(b_lean_obj_arg p, lean_obj_arg world) { |
| 668 | (void)world; ENSURE_INIT(); WITH_GIL(); |
| 669 | Py_ssize_t r = p_PyObject_Length(unwrap_pyobject(p)); |
| 670 | if (r < 0) return raise_py_error(); |
| 671 | return lean_io_result_mk_ok(lean_int64_to_int((int64_t) r)); |
| 672 | } |
| 673 |
nothing calls this directly
no test coverage detected