(&self, a: &PyObject, op: &str)
| 198 | } |
| 199 | |
| 200 | pub fn new_unsupported_unary_error(&self, a: &PyObject, op: &str) -> PyBaseExceptionRef { |
| 201 | self.new_type_error(format!( |
| 202 | "bad operand type for {}: '{}'", |
| 203 | op, |
| 204 | a.class().name() |
| 205 | )) |
| 206 | } |
| 207 | |
| 208 | pub fn new_unsupported_bin_op_error( |
| 209 | &self, |