MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / new_lazy_init

Method new_lazy_init

src/err.rs:300–306  ·  view source on GitHub ↗
(exc: PyType, value: Option<PyObject>)

Source from the content-addressed store, hash-verified

298 /// `value` is the exception instance, or a tuple of arguments to pass to the exception constructor.
299 #[inline]
300 pub fn new_lazy_init(exc: PyType, value: Option<PyObject>) -> PyErr {
301 PyErr {
302 ptype: exc.into_object(),
303 pvalue: value,
304 ptraceback: None,
305 }
306 }
307
308 /// Print a standard traceback to sys.stderr.
309 pub fn print(self, py: Python) {

Callers

nothing calls this directly

Calls 1

into_objectMethod · 0.45

Tested by

no test coverage detected