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

Function lean_py_setattr

LeanPy/native/python_bridge.c:633–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633/* ------------------------------------------------------------------ */
634/* Object access */
635/* ------------------------------------------------------------------ */
636
637LEAN_EXPORT lean_obj_res lean_py_getattr(b_lean_obj_arg p, b_lean_obj_arg name, lean_obj_arg world) {
638 (void)world; ENSURE_INIT(); WITH_GIL();
639 return ok_owned_or_err(p_PyObject_GetAttrString(unwrap_pyobject(p), lean_string_cstr(name)));
640}
641

Callers

nothing calls this directly

Calls 4

unwrap_pyobjectFunction · 0.85
lean_string_cstrFunction · 0.85
raise_py_errorFunction · 0.85
lean_boxFunction · 0.85

Tested by

no test coverage detected