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

Function lean_py_getattr

LeanPy/native/python_bridge.c:628–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 PyObject *ty = p_PyObject_Type(unwrap_pyobject(p));
627 if (!ty) return raise_py_error();
628 PyObject *nm = p_PyObject_GetAttrString(ty, "__name__");
629 p_Py_DecRef(ty);
630 return py_obj_to_lean_string(nm);
631}
632
633/* ------------------------------------------------------------------ */
634/* Object access */

Callers

nothing calls this directly

Calls 3

ok_owned_or_errFunction · 0.85
unwrap_pyobjectFunction · 0.85
lean_string_cstrFunction · 0.85

Tested by

no test coverage detected