From: Marco Buttu Date: Mon, 12 Jun 2017 19:43:52 +0000 (+0200) Subject: bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138) X-Git-Tag: v3.5.4rc1~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37e04153d5e331162608b33639ecd3c9a5ae2432;p=python bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138) (cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index c4588f2438..3e279e6e5e 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -394,10 +394,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 that there are enough bits so that