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

Method binary_iop

crates/vm/src/vm/vm_ops.rs:277–290  ·  view source on GitHub ↗
(
        &self,
        a: &PyObject,
        b: &PyObject,
        iop_slot: PyNumberBinaryOp,
        op_slot: PyNumberBinaryOp,
        op: &str,
    )

Source from the content-addressed store, hash-verified

275 }
276
277 fn binary_iop(
278 &self,
279 a: &PyObject,
280 b: &PyObject,
281 iop_slot: PyNumberBinaryOp,
282 op_slot: PyNumberBinaryOp,
283 op: &str,
284 ) -> PyResult {
285 let result = self.binary_iop1(a, b, iop_slot, op_slot)?;
286 if !result.is(&self.ctx.not_implemented) {
287 return Ok(result);
288 }
289 Err(self.new_unsupported_bin_op_error(a, b, op))
290 }
291
292 fn ternary_op(
293 &self,

Callers

nothing calls this directly

Calls 4

binary_iop1Method · 0.80
isMethod · 0.80
ErrClass · 0.50

Tested by

no test coverage detected