bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136)

(cherry picked from commit dc980dfbcf)
This commit is contained in:
Marco Buttu 2017-06-12 21:41:42 +02:00 committed by Mariatta
parent 8399a177de
commit f59cac4b64

View file

@ -394,10 +394,12 @@ Bitwise Operations on Integer Types
pair: bitwise; operations pair: bitwise; operations
pair: shifting; operations pair: shifting; operations
pair: masking; operations pair: masking; operations
operator: |
operator: ^ operator: ^
operator: & operator: &
operator: << operator: <<
operator: >> operator: >>
operator: ~
Bitwise operations only make sense for integers. Negative numbers are treated Bitwise operations only make sense for integers. Negative numbers are treated
as their 2's complement value (this assumes that there are enough bits so that as their 2's complement value (this assumes that there are enough bits so that