pyo3
pyo3 copied to clipboard
replace `PyString::from_object` with `PyString::from_encoded_object`
Followup to #5008, as per my suggestion in #5005
Looks like adding a deprecation is discouraged in a patch, so will keep this for 0.25.
Think we'll start merging all those changes in shortly, I just want to get 0.24.1 done first.
With #5021 prepped, I think this is ready for merge, if others agree this is a good idea?