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

Function eq

crates/vm/src/stdlib/_operator.rs:37–39  ·  view source on GitHub ↗
(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

35
36 #[pyfunction]
37 fn eq(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
38 a.rich_compare(b, PyComparisonOp::Eq, vm)
39 }
40
41 #[pyfunction]
42 fn ne(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers 15

update_code_filenamesFunction · 0.70
unregisterFunction · 0.70
set_sessionMethod · 0.50
eqMethod · 0.50
extendMethod · 0.50
eqMethod · 0.50
extend_classMethod · 0.50
richcompareMethod · 0.50
to_ffi_valueMethod · 0.50
repr_strMethod · 0.50
cmpMethod · 0.50
cmpMethod · 0.50

Calls 1

rich_compareMethod · 0.80

Tested by

no test coverage detected