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

Function add

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

Source from the content-addressed store, hash-verified

70
71 #[pyfunction]
72 fn add(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
73 vm._add(&a, &b)
74 }
75
76 #[pyfunction]
77 fn and_(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers 1

registerMethod · 0.50

Calls 1

_addMethod · 0.45

Tested by

no test coverage detected