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

Function lean_py_true

LeanPy/native/python_bridge.c:461–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 = p_PyGILState_Ensure()
460
461/* ------------------------------------------------------------------ */
462/* Singletons */
463/* ------------------------------------------------------------------ */
464
465LEAN_EXPORT lean_obj_res lean_py_none(lean_obj_arg unit, lean_obj_arg world) {
466 (void)world; ENSURE_INIT(); WITH_GIL();
467 p_Py_IncRef(p_Py_None);
468 return lean_io_result_mk_ok(wrap_pyobject(p_Py_None));

Callers

nothing calls this directly

Calls 1

wrap_pyobjectFunction · 0.85

Tested by

no test coverage detected