| 499 | /* big int: stringify via Lean would be ideal; for now reject. */ |
| 500 | return raise_io_error("LeanPy: Int out of int64 range not supported"); |
| 501 | } |
| 502 | return ok_owned_or_err(p_PyLong_FromLongLong(v)); |
| 503 | } |
| 504 | |
| 505 | LEAN_EXPORT lean_obj_res lean_py_of_float(double f, lean_obj_arg world) { |
| 506 | (void)world; ENSURE_INIT(); WITH_GIL(); |
| 507 | return ok_owned_or_err(p_PyFloat_FromDouble(f)); |
| 508 | } |
| 509 |
nothing calls this directly
no test coverage detected