Method
cmp
(
zelf: &Py<Self>,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
Source from the content-addressed store, hash-verified
| 568 | |
| 569 | impl Comparable for PyDict { |
| 570 | fn cmp( |
| 571 | zelf: &Py<Self>, |
| 572 | other: &PyObject, |
| 573 | op: PyComparisonOp, |
| 574 | vm: &VirtualMachine, |
| 575 | ) -> PyResult<PyComparisonValue> { |
| 576 | op.eq_only(|| { |
| 577 | let other = class_or_notimplemented!(Self, other); |
| 578 | zelf.inner_cmp(other, PyComparisonOp::Eq, true, vm) |
| 579 | }) |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | impl Iterable for PyDict { |
Tested by
no test coverage detected