| 603 | } |
| 604 | lean_object *out = lean_mk_string(cs); |
| 605 | p_Py_DecRef(s); |
| 606 | return lean_io_result_mk_ok(out); |
| 607 | } |
| 608 | |
| 609 | LEAN_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))); |
nothing calls this directly
no test coverage detected