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

Method to_py_object

src/objects/string.rs:456–458  ·  view source on GitHub ↗
(&self, py: Python)

Source from the content-addressed store, hash-verified

454
455 #[inline]
456 fn to_py_object(&self, py: Python) -> PyString {
457 PyString::new(py, self)
458 }
459}
460
461/// Converts Rust `str` to Python object.

Callers 2

test_non_bmpFunction · 0.45
test_extract_strFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_non_bmpFunction · 0.36
test_extract_strFunction · 0.36