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

Method identical_or_equal

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

Source from the content-addressed store, hash-verified

80 }
81
82 pub fn identical_or_equal(&self, a: &PyObject, b: &PyObject) -> PyResult<bool> {
83 if a.is(b) {
84 Ok(true)
85 } else {
86 self.bool_eq(a, b)
87 }
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)? {

Callers 8

remove_done_callbackMethod · 0.80
key_eqMethod · 0.80
eqMethod · 0.80
cmpMethod · 0.80
countMethod · 0.80
indexMethod · 0.80
_containsMethod · 0.80
method_is_overloadedFunction · 0.80

Calls 2

isMethod · 0.80
bool_eqMethod · 0.80

Tested by

no test coverage detected