(_py: Python, ty: PyType, value: PyObject)
| 245 | } |
| 246 | |
| 247 | fn new_helper(_py: Python, ty: PyType, value: PyObject) -> PyErr { |
| 248 | assert!(unsafe { ffi::PyExceptionClass_Check(ty.as_object().as_ptr()) } != 0); |
| 249 | PyErr { |
| 250 | ptype: ty.into_object(), |
| 251 | pvalue: Some(value), |
| 252 | ptraceback: None, |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | /// Creates a new PyErr. |
| 257 | /// |
nothing calls this directly
no test coverage detected