(
zelf: &Py<Self>,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
| 545 | |
| 546 | impl Comparable for PyTuple { |
| 547 | fn cmp( |
| 548 | zelf: &Py<Self>, |
| 549 | other: &PyObject, |
| 550 | op: PyComparisonOp, |
| 551 | vm: &VirtualMachine, |
| 552 | ) -> PyResult<PyComparisonValue> { |
| 553 | if let Some(res) = op.identical_optimization(zelf, other) { |
| 554 | return Ok(res.into()); |
| 555 | } |
| 556 | let other = class_or_notimplemented!(Self, other); |
| 557 | zelf.iter() |
| 558 | .richcompare(other.iter(), op, vm) |
| 559 | .map(PyComparisonValue::Implemented) |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | impl Iterable for PyTuple { |
nothing calls this directly
no test coverage detected