Skip to content

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

Merged

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented May 24, 2020

Copy link
Member

@mdickinson mdickinson left a 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.

@mdickinson
Copy link
Member

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).

@mdickinson
Copy link
Member

@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.

@rhettinger
Copy link
Contributor

This looks good. Please do remove the "without overflow check" wording as well.

@mdickinson mdickinson merged commit af7553a into python:master May 26, 2020
@miss-islington
Copy link
Contributor

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.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2020
…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]>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label May 26, 2020
@bedevere-bot
Copy link

GH-20414 is a backport of this pull request to the 3.9 branch.

@bedevere-bot
Copy link

GH-20415 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2020
…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]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2020
…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]>
@bedevere-bot
Copy link

GH-20416 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2020
…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]>
@bedevere-bot
Copy link

GH-20417 is a backport of this pull request to the 3.6 branch.

@mdickinson
Copy link
Member

Ah, 3.6 is in security mode; I'll close that backport.

mdickinson pushed a commit that referenced this pull request May 26, 2020
…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]>
mdickinson pushed a commit that referenced this pull request May 26, 2020
…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]>
mdickinson pushed a commit that referenced this pull request May 26, 2020
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants