(
&self,
exc: PyBaseExceptionRef,
)
| 326 | } |
| 327 | |
| 328 | pub fn split_exception( |
| 329 | &self, |
| 330 | exc: PyBaseExceptionRef, |
| 331 | ) -> (PyObjectRef, PyObjectRef, PyObjectRef) { |
| 332 | let tb = exc.__traceback__().to_pyobject(self); |
| 333 | let class = exc.class().to_owned(); |
| 334 | (class.into(), exc.into(), tb) |
| 335 | } |
| 336 | |
| 337 | /// Similar to PyErr_NormalizeException in CPython |
| 338 | pub fn normalize_exception( |
no test coverage detected