TODO: don't take ownership should make the success path faster
(&self, obj: PyObjectRef)
| 322 | |
| 323 | // TODO: don't take ownership should make the success path faster |
| 324 | pub fn new_key_error(&self, obj: PyObjectRef) -> PyBaseExceptionRef { |
| 325 | let key_error = self.ctx.exceptions.key_error.to_owned(); |
| 326 | self.new_exception(key_error, vec![obj]) |
| 327 | } |
| 328 | |
| 329 | #[cfg(any(feature = "parser", feature = "compiler"))] |
| 330 | pub fn new_syntax_error_maybe_incomplete( |
no test coverage detected