From: Marco Buttu Date: Mon, 12 Jun 2017 19:42:47 +0000 (+0200) Subject: bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137) X-Git-Tag: v2.7.14rc1~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbb335891c2967bd13fbe2da775c0348260d95cb;p=python bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137) (cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 4e605eba59..bc7411c809 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -423,10 +423,12 @@ Bitwise Operations on Integer Types pair: bitwise; operations pair: shifting; operations pair: masking; operations + operator: | operator: ^ operator: & operator: << operator: >> + operator: ~ Bitwise operations only make sense for integers. Negative numbers are treated as their 2's complement value (this assumes a sufficiently large number of bits