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

Function get_main_globals

LeanPy/native/python_bridge.c:733–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733/* ------------------------------------------------------------------ */
734/* Modules and globals */
735/* ------------------------------------------------------------------ */
736
737LEAN_EXPORT lean_obj_res lean_py_import(b_lean_obj_arg name, lean_obj_arg world) {
738 (void)world; ENSURE_INIT(); WITH_GIL();
739 return ok_owned_or_err(p_PyImport_ImportModule(lean_string_cstr(name)));
740}

Callers 2

lean_py_evalFunction · 0.85
lean_py_execFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected