| 54 | } |
| 55 | |
| 56 | void accumulate(pybind11::object& lhs, pybind11::object rhs) { |
| 57 | bolt::python::pyTry<void>( |
| 58 | [&]() { lhs.attr("accumulate")(rhs); }, |
| 59 | [&]() { |
| 60 | return fmt::format( |
| 61 | "Failure during call to 'accumulate()' method between: '{}' and: '{}'.", |
| 62 | bolt::python::pyInstanceTypeStr(lhs), |
| 63 | bolt::python::pyInstanceTypeStr(rhs)); |
| 64 | }); |
| 65 | } |
| 66 | |
| 67 | pybind11::object reduce(pybind11::object& accumulator) { |
| 68 | return bolt::python::pyTry<pybind11::object>( |