]> granicus.if.org Git - python/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:31 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Sat, 28 Jul 2018 16:52:31 +0000 (09:52 -0700)
commit3100b7e710dccdcfbc6991ea7e8985a1881d42e6
tree40cdedc5ed2f7d1bdea192ebbe0021564d3255e0
parentf17e001746e0f697e9bd49ac3748f2543b0a0d47
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