MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / lean_py_eq

Function lean_py_eq

LeanPy/native/python_bridge.c:665–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663 if (r != 0) return raise_py_error();
664 return lean_io_result_mk_ok(lean_box(0));
665}
666
667LEAN_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

Callers

nothing calls this directly

Calls 3

unwrap_pyobjectFunction · 0.85
raise_py_errorFunction · 0.85
lean_boxFunction · 0.85

Tested by

no test coverage detected