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

Function lean_py_pow

LeanPy/native/python_bridge.c:772–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770#define BINOP(name, fn) \
771LEAN_EXPORT lean_obj_res name(b_lean_obj_arg a, b_lean_obj_arg b, lean_obj_arg world) { \
772 (void)world; ENSURE_INIT(); WITH_GIL(); \
773 return ok_owned_or_err(fn(unwrap_pyobject(a), unwrap_pyobject(b))); \
774}
775
776BINOP(lean_py_add, p_PyNumber_Add)
777BINOP(lean_py_sub, p_PyNumber_Subtract)
778BINOP(lean_py_mul, p_PyNumber_Multiply)
779BINOP(lean_py_div, p_PyNumber_TrueDivide)

Callers

nothing calls this directly

Calls 2

ok_owned_or_errFunction · 0.85
unwrap_pyobjectFunction · 0.85

Tested by

no test coverage detected