diff options
author | Marco Buttu <marco.buttu@gmail.com> | 2017-06-12 19:43:52 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-06-12 19:43:52 (GMT) |
commit | 37e04153d5e331162608b33639ecd3c9a5ae2432 (patch) | |
tree | 462d62ad9ff9d6852951adbe4b2380e854f12cbc /Doc/library | |
parent | 7d8c1ebd86ce27b28736c5e97fef58ec60b8ef31 (diff) | |
download | cpython-37e04153d5e331162608b33639ecd3c9a5ae2432.zip cpython-37e04153d5e331162608b33639ecd3c9a5ae2432.tar.gz cpython-37e04153d5e331162608b33639ecd3c9a5ae2432.tar.bz2 |
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138)
(cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index c4588f2..3e279e6 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 |