nautilus_core::ffi::stringFunction pystr_to_string
Source pub unsafe fn pystr_to_string(ptr: *mut PyObject) -> String
Expand description
Returns an owned string from a valid Python object pointer.
§Safety
- Assumes
ptr
is borrowed from a valid Python UTF-8 str
.
§Panics
This function panics: