| 656 | (void)world; ENSURE_INIT(); WITH_GIL(); |
| 657 | return ok_owned_or_err(p_PyObject_GetItem(unwrap_pyobject(p), unwrap_pyobject(k))); |
| 658 | } |
| 659 | |
| 660 | LEAN_EXPORT lean_obj_res lean_py_setitem(b_lean_obj_arg p, b_lean_obj_arg k, b_lean_obj_arg v, lean_obj_arg world) { |
| 661 | (void)world; ENSURE_INIT(); WITH_GIL(); |
| 662 | int r = p_PyObject_SetItem(unwrap_pyobject(p), unwrap_pyobject(k), unwrap_pyobject(v)); |
| 663 | if (r != 0) return raise_py_error(); |
| 664 | return lean_io_result_mk_ok(lean_box(0)); |
| 665 | } |
| 666 |
nothing calls this directly
no test coverage detected