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

Function sub

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

Source from the content-addressed store, hash-verified

142
143 #[pyfunction]
144 fn sub(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {
145 vm._sub(&a, &b)
146 }
147
148 #[pyfunction]
149 fn truediv(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 1

_subMethod · 0.80

Tested by

no test coverage detected