summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Buttu <marco.buttu@gmail.com>2017-06-09 14:28:28 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-06-09 14:28:27 (GMT)
commit5eb7075915f0509c5027376bda0e6d9c1e505a2c (patch)
tree35c5dbf563b2b334ab9aa8f479a95e924b9c4452
parent63c2c8ac17750ba2be2cfc4e339cae1f4edee54f (diff)
downloadcpython-5eb7075915f0509c5027376bda0e6d9c1e505a2c.zip
cpython-5eb7075915f0509c5027376bda0e6d9c1e505a2c.tar.gz
cpython-5eb7075915f0509c5027376bda0e6d9c1e505a2c.tar.bz2
bpo-30217: Add the operators ~ and | to the index (#1502)
-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 492b82b..24762b1 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