(&self, result: PyResult<T>)
| 81 | |
| 82 | #[track_caller] |
| 83 | pub fn unwrap_pyresult<T>(&self, result: PyResult<T>) -> T { |
| 84 | match result { |
| 85 | Ok(x) => x, |
| 86 | Err(exc) => { |
| 87 | self._py_panic_failed(exc, "called `vm.unwrap_pyresult()` on an `Err` value") |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | #[track_caller] |
| 92 | pub fn expect_pyresult<T>(&self, result: PyResult<T>, msg: &str) -> T { |
| 93 | match result { |