]> granicus.if.org Git - python/commit
bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Sat, 28 Jul 2018 05:15:50 +0000 (10:45 +0530)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 28 Jul 2018 05:15:50 +0000 (15:15 +1000)
commitb4bc5cab82e6855e4ebc33ba0b669ddffad30fb3
treea01af1d1f1dfe3707ca0cbff78926775d06ccfd3
parent612dbefe9dfce0f67bce358613e472e913be8a57
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.
Doc/library/stdtypes.rst