Function 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
Panics if ptr
is null.