-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Extend deprecation warning period for bitwise inversion on bool
type
#122982
Comments
It's deprecated, but why should it be removed now? |
Oh, I see the plan to remove it in 3.14 is in the docs, but not all the places it should be :( |
I think the removal might affect a number of users (e.g. see comments on #103487); I'd vote for extending the deprecation period beyond the 2 year minimum |
I've read these comments and I agree with your opinion. I'll close the PR and open a new one to properly document the deprecation. |
It is not necessary to close the PR. It can simply be postponed for few years. |
bool
typebool
type
bool
typebool
type
I've changed the title of the issue to highlight the fact that we are not removing it for now. We will change it later when we'll eventually remove it (just for tracking purposes) |
…two years (pythonGH-123306) (cherry picked from commit 249b083) Co-authored-by: Kirill Podoprigora <[email protected]>
…two years (pythonGH-123306) (cherry picked from commit 249b083) Co-authored-by: Kirill Podoprigora <[email protected]>
Can't this be closed now? |
Mmmh. Yes. We'll open another issue if we want to really deprecate the behaviour. |
Feature or enhancement
Proposal:
Since Python 3.12, attempting to use bitwise inversion on a bool type is raises a
DeprecationWarning
:I have a PR ready.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: