pyo3/newsfragments/3677.added.md
2023-12-20 16:19:18 +00:00

2 lines
182 B
Markdown

Add `PyString::to_cow`. Add `Py<PyString>::to_str`, `Py<PyString>::to_cow`, and `Py<PyString>::to_string_lossy`, as ways to access Python string data safely beyond the GIL lifetime.