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

Function get_py_class

LeanPy/native/python_bridge.c:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static lean_external_class *get_py_class(void) {
229 if (!g_py_class) {
230 g_py_class = lean_register_external_class(py_finalize, py_foreach);
231 }
232 return g_py_class;
233}
234
235static lean_object *wrap_pyobject(PyObject *o) {
236 return lean_alloc_external(get_py_class(), o);

Callers 1

wrap_pyobjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected