]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 28 Jul 2018 16:52:14 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Sat, 28 Jul 2018 16:52:14 +0000 (09:52 -0700)
commit8764a6ffda896af4586f07b55d7df916f86dd9b0
tree323115e53340dc41c3461fffe3ae25a7a101d415
parent83b449d754f4da3be107b508392ef5180f105c8b
bpo-29710: Clarify documentation for Bitwise binary operation (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 b4bc5cab82e6855e4ebc33ba0b669ddffad30fb3)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Doc/library/stdtypes.rst