-
Notifications
You must be signed in to change notification settings - Fork 825
replace PyString::from_object
with PyString::from_encoded_object
#5017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ec502ec
to
5de3f93
Compare
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? |
encoding: &CStr, | ||
errors: &CStr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be Option
s to "have the interface use the default values" or do we want to explicitly not provide that option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good spot. I'll have a think about this, I'm not sure which I prefer 🤔
} | ||
|
||
/// Deprecated name for [`PyString::from_object`]. | ||
#[deprecated(since = "0.23.0", note = "renamed to `PyString::from_object`")] | ||
#[deprecated( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this was deprecated already, we can probably just remove it already, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, just a race with the other prs, think this function is deleted now 🙌
Followup to #5008, as per my suggestion in #5005