Performs the operation on the bits that make up the number
If an number is negative then its 2’s compliment is calculated before performing the operation
If all the inputs are negative then its 2’s complement value is returned

Bitwise Operators in Python – Real Python