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

Function unwrap_pyobject

LeanPy/native/python_bridge.c:239–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239static PyObject *unwrap_pyobject(b_lean_obj_arg obj) {
240 return (PyObject *)lean_get_external_data(obj);
241}
242
243/* Python-side helper: extract the wrapped `PyObject*` from a Lean
244 * external-class handle. Bumps the Python refcount so the caller

Callers 15

leanpy_unwrap_pyobjectFunction · 0.85
lean_py_of_listFunction · 0.85
lean_py_of_tupleFunction · 0.85
lean_py_of_dictFunction · 0.85
lean_py_to_boolFunction · 0.85
lean_py_to_int64Function · 0.85
lean_py_to_floatFunction · 0.85
lean_py_to_stringFunction · 0.85
lean_py_reprFunction · 0.85
lean_py_strFunction · 0.85
lean_py_type_nameFunction · 0.85
lean_py_getattrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected