Method
cmp
(
zelf: &Py<Self>,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
Source from the content-addressed store, hash-verified
| 123 | |
| 124 | impl Comparable for PyNamespace { |
| 125 | fn cmp( |
| 126 | zelf: &Py<Self>, |
| 127 | other: &PyObject, |
| 128 | op: PyComparisonOp, |
| 129 | vm: &VirtualMachine, |
| 130 | ) -> PyResult<PyComparisonValue> { |
| 131 | let other = class_or_notimplemented!(Self, other); |
| 132 | let (d1, d2) = ( |
| 133 | zelf.as_object().dict().unwrap(), |
| 134 | other.as_object().dict().unwrap(), |
| 135 | ); |
| 136 | PyDict::cmp(&d1, d2.as_object(), op, vm) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | impl Representable for PyNamespace { |
Callers
nothing calls this directly
Tested by
no test coverage detected