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

Method print

src/err.rs:309–312  ·  view source on GitHub ↗

Print a standard traceback to sys.stderr.

(self, py: Python)

Source from the content-addressed store, hash-verified

307
308 /// Print a standard traceback to sys.stderr.
309 pub fn print(self, py: Python) {
310 self.restore(py);
311 unsafe { ffi::PyErr_PrintEx(0) }
312 }
313
314 /// Print a standard traceback to sys.stderr.
315 pub fn print_and_set_sys_last_vars(self, py: Python) {

Callers

nothing calls this directly

Calls 1

restoreMethod · 0.80

Tested by

no test coverage detected