-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-39301: State that floor division is used for right shift operations #20347
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
bpo-39301: State that floor division is used for right shift operations #20347
Conversation
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.
LGTM. It may not completely resolve confusion, but it's a clear incremental improvement.
One thought: while we're here, could we remove the "without overflow check" part? I have no idea what it means, and I suspect no-one else does either. It may have made sense before long integers were the norm (though even then, I'm not sure what it means). |
@ZackerySpytz Do you want to remove the "without overflow check" wording in this PR? If not, I'll merge this one and make a separate PR for changing that wording. |
This looks good. Please do remove the "without overflow check" wording as well. |
Thanks @ZackerySpytz for the PR, and @mdickinson for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7, 3.8, 3.9. |
…ns (pythonGH-20347) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]>
GH-20414 is a backport of this pull request to the 3.9 branch. |
GH-20415 is a backport of this pull request to the 3.8 branch. |
…ns (pythonGH-20347) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]>
…ns (pythonGH-20347) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]>
GH-20416 is a backport of this pull request to the 3.7 branch. |
…ns (pythonGH-20347) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]>
GH-20417 is a backport of this pull request to the 3.6 branch. |
Ah, 3.6 is in security mode; I'll close that backport. |
…ns (GH-20347) (GH-20414) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Zackery Spytz <[email protected]>
…ns (GH-20347) (GH-20415) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]>
…ns (GH-20347) (GH-20416) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553a) Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Zackery Spytz <[email protected]>
https://bugs.python.org/issue39301