summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Buttu <marco.buttu@gmail.com>2017-06-12 19:42:47 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-12 19:42:47 (GMT)
commitbbb335891c2967bd13fbe2da775c0348260d95cb (patch)
tree8f8ec1c910ac357cf35cd4f1aea093b829963ab9
parent41af942e57f9a450cf273ef6b72a21380c6ba8d1 (diff)
downloadcpython-bbb335891c2967bd13fbe2da775c0348260d95cb.zip
cpython-bbb335891c2967bd13fbe2da775c0348260d95cb.tar.gz
cpython-bbb335891c2967bd13fbe2da775c0348260d95cb.tar.bz2
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137)
(cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36)
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 4e605eb..bc7411c 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