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

Function lean_py_str

LeanPy/native/python_bridge.c:610–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)));
612}
613
614LEAN_EXPORT lean_obj_res lean_py_repr(b_lean_obj_arg p, lean_obj_arg world) {
615 (void)world; ENSURE_INIT(); WITH_GIL();
616 return py_obj_to_lean_string(p_PyObject_Repr(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