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

Method clone_ref

src/err.rs:437–443  ·  view source on GitHub ↗
(&self, py: Python)

Source from the content-addressed store, hash-verified

435
436impl PyClone for PyErr {
437 fn clone_ref(&self, py: Python) -> PyErr {
438 PyErr {
439 ptype: self.ptype.clone_ref(py),
440 pvalue: self.pvalue.clone_ref(py),
441 ptraceback: self.ptraceback.clone_ref(py),
442 }
443 }
444}
445
446/// Converts `PythonObjectDowncastError` to Python `TypeError`.

Callers 5

try_leak_immutableMethod · 0.45
get_typeMethod · 0.45
instanceMethod · 0.45
check_serde_round_tripFunction · 0.45
gc_integrationFunction · 0.45

Calls

no outgoing calls

Tested by 2

check_serde_round_tripFunction · 0.36
gc_integrationFunction · 0.36