(
zelf: &PyObject,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
| 1810 | #[inline] |
| 1811 | #[pyslot] |
| 1812 | fn slot_richcompare( |
| 1813 | zelf: &PyObject, |
| 1814 | other: &PyObject, |
| 1815 | op: PyComparisonOp, |
| 1816 | vm: &VirtualMachine, |
| 1817 | ) -> PyResult<Either<PyObjectRef, PyComparisonValue>> { |
| 1818 | let zelf = zelf.downcast_ref().ok_or_else(|| { |
| 1819 | vm.new_type_error(format!( |
| 1820 | "unexpected payload for {}", |
| 1821 | op.method_name(&vm.ctx).as_str() |
| 1822 | )) |
| 1823 | })?; |
| 1824 | Self::cmp(zelf, other, op, vm).map(Either::B) |
| 1825 | } |
| 1826 | |
| 1827 | fn cmp( |
| 1828 | zelf: &Py<Self>, |
nothing calls this directly
no test coverage detected