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

Function lean_py_repr

LeanPy/native/python_bridge.c:605–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603 }
604 lean_object *out = lean_mk_string(cs);
605 p_Py_DecRef(s);
606 return lean_io_result_mk_ok(out);
607}
608
609LEAN_EXPORT lean_obj_res lean_py_to_string(b_lean_obj_arg p, lean_obj_arg world) {
610 (void)world; ENSURE_INIT(); WITH_GIL();
611 return py_obj_to_lean_string(p_PyObject_Str(unwrap_pyobject(p)));

Callers

nothing calls this directly

Calls 2

py_obj_to_lean_stringFunction · 0.85
unwrap_pyobjectFunction · 0.85

Tested by

no test coverage detected