-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Reintroduced convert with a strong deprecation warning #4681
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
Conversation
Just out of curiosity, what code did break because of (the lack of) this, @hmaarrfk? |
i let the I guess most people do
Seems a little silly seeing as they all just call convert anyway. So i just call convert like |
I think I'm -1 on this. You were not supposed to use this function, it was not in the API. The alternative, is to do what I originally did in my PR: put it in the API. |
FWIW,after this PR it is in the API albeit with a strong warning. |
@hmaarrfk I really don't understand the logic here. If we are planning to destroy the function, and you acknowledge as much in the warning, your client code will need to adapt anyway. You might as well just use the private function, with a try/except for importing Having said this, I don't have very strong opposition to this. But I prefer going back to the old state of semi-private rather than making it fully public. We should aim to reduce the 1.0 disruption, not throw in the towel and decide that APIs don't matter anymore since we are planning to break them all soon. |
These concerns are all fair. And through searching on github, it seems that i am probably the only one using this function. I understand that in 1.0, we can remove this function. That said, today, this is a super useful function. I routinely have
and in my loading functions
where inside At this stage, I could go either way. I don't think we should spend much more reviewer cognitive task, I won't take offense if somebody simply decides to close this PR. |
I feel like the current state of the PR is an acceptable trade-off, ie
|
@meeseeksdev backport to v0.17.x |
…recation warning
thx. |
…ning (#4693) Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com>
Description
This PR reintroduces
convert
with a strong warning to not use it.I know we are working toward 1.0, but this broke my code.
I guess most people use the public API, but I was not keep on making my own if/elif statement:
Closes #4680
@sciunto @emmanuelle
Checklist
./doc/examples
(new features only)./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.