bpo-39301: State that floor division is used for right shift operations#20347
Conversation
mdickinson
left a comment
There was a problem hiding this comment.
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 <zspytz@gmail.com>
|
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 <zspytz@gmail.com>
…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 <zspytz@gmail.com>
|
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 <zspytz@gmail.com>
|
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. |
https://bugs.python.org/issue39301