Skip to content

[3.7] bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691) #8508

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
merged 1 commit into from
Jul 28, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 28, 2018

Mathematically, bitwise operations on integers behave as if there were an
infinite number of sign bits. Pragmatically, that gives the same answer as
using one extra sign bit for the bitwise logical operations.
(cherry picked from commit b4bc5ca)

Co-authored-by: Sanyam Khurana [email protected]

https://bugs.python.org/issue29710

…GH-1691)

Mathematically, bitwise operations on integers behave as if there were an
infinite number of sign bits. Pragmatically, that gives the same answer as
using one extra sign bit for the bitwise logical operations.
(cherry picked from commit b4bc5ca)

Co-authored-by: Sanyam Khurana <[email protected]>
@miss-islington
Copy link
Contributor Author

@CuriousLearner and @ncoghlan: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 8764a6f into python:3.7 Jul 28, 2018
@miss-islington miss-islington deleted the backport-b4bc5ca-3.7 branch July 28, 2018 16:52
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.

5 participants