MCPcopy Index your code
hub / github.com/RustPython/RustPython / bool_seq_gt

Method bool_seq_gt

crates/vm/src/vm/vm_ops.rs:101–110  ·  view source on GitHub ↗
(&self, a: &PyObject, b: &PyObject)

Source from the content-addressed store, hash-verified

99 }
100
101 pub fn bool_seq_gt(&self, a: &PyObject, b: &PyObject) -> PyResult<Option<bool>> {
102 let value = if a.rich_compare_bool(b, PyComparisonOp::Gt, self)? {
103 Some(true)
104 } else if !self.bool_eq(a, b)? {
105 Some(false)
106 } else {
107 None
108 };
109 Ok(value)
110 }
111
112 pub fn length_hint_opt(&self, iter: PyObjectRef) -> PyResult<Option<usize>> {
113 match iter.length(self) {

Callers 3

cmpMethod · 0.80
richcompareMethod · 0.80
cmpMethod · 0.80

Calls 3

rich_compare_boolMethod · 0.80
bool_eqMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected