(int: &BigInt, vm: &VirtualMachine)
| 786 | } |
| 787 | |
| 788 | pub fn try_to_float(int: &BigInt, vm: &VirtualMachine) -> PyResult<f64> { |
| 789 | bigint_to_finite_float(int) |
| 790 | .ok_or_else(|| vm.new_overflow_error("int too large to convert to float")) |
| 791 | } |
| 792 | |
| 793 | fn vectorcall_int( |
| 794 | zelf_obj: &PyObject, |
no test coverage detected