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

Method new_unsupported_bin_op_error

crates/vm/src/vm/vm_new.rs:208–220  ·  view source on GitHub ↗
(
        &self,
        a: &PyObject,
        b: &PyObject,
        op: &str,
    )

Source from the content-addressed store, hash-verified

206 }
207
208 pub fn new_unsupported_bin_op_error(
209 &self,
210 a: &PyObject,
211 b: &PyObject,
212 op: &str,
213 ) -> PyBaseExceptionRef {
214 self.new_type_error(format!(
215 "unsupported operand type(s) for {}: '{}' and '{}'",
216 op,
217 a.class().name(),
218 b.class().name()
219 ))
220 }
221
222 pub fn new_unsupported_ternary_op_error(
223 &self,

Callers 6

binary_opMethod · 0.80
binary_iopMethod · 0.80
_addMethod · 0.80
_iaddMethod · 0.80
_mulMethod · 0.80
_imulMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected