(
zelf: &PyObject,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
| 539 | } |
| 540 | |
| 541 | pub(crate) fn richcompare_wrapper( |
| 542 | zelf: &PyObject, |
| 543 | other: &PyObject, |
| 544 | op: PyComparisonOp, |
| 545 | vm: &VirtualMachine, |
| 546 | ) -> PyResult<Either<PyObjectRef, PyComparisonValue>> { |
| 547 | vm.call_special_method(zelf, op.method_name(&vm.ctx), (other.to_owned(),)) |
| 548 | .map(Either::A) |
| 549 | } |
| 550 | |
| 551 | fn iter_wrapper(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult { |
| 552 | // slot_tp_iter: if __iter__ is None, the type is explicitly not iterable |
nothing calls this directly
no test coverage detected