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

Function lean_py_of_string

LeanPy/native/python_bridge.c:501–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499 /* big int: stringify via Lean would be ideal; for now reject. */
500 return raise_io_error("LeanPy: Int out of int64 range not supported");
501 }
502 return ok_owned_or_err(p_PyLong_FromLongLong(v));
503}
504
505LEAN_EXPORT lean_obj_res lean_py_of_float(double f, lean_obj_arg world) {
506 (void)world; ENSURE_INIT(); WITH_GIL();
507 return ok_owned_or_err(p_PyFloat_FromDouble(f));
508}
509

Callers

nothing calls this directly

Calls 3

lean_string_cstrFunction · 0.85
lean_string_sizeFunction · 0.85
ok_owned_or_errFunction · 0.85

Tested by

no test coverage detected