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

Method bool_seq_lt

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

Source from the content-addressed store, hash-verified

88 }
89
90 pub fn bool_seq_lt(&self, a: &PyObject, b: &PyObject) -> PyResult<Option<bool>> {
91 let value = if a.rich_compare_bool(b, PyComparisonOp::Lt, self)? {
92 Some(true)
93 } else if !self.bool_eq(a, b)? {
94 Some(false)
95 } else {
96 None
97 };
98 Ok(value)
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)? {

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