diff options
author | Marco Buttu <marco.buttu@gmail.com> | 2017-06-12 19:41:42 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-06-12 19:41:42 (GMT) |
commit | f59cac4b6458e5c47e24a39ba46fb178c3766577 (patch) | |
tree | 11ac094d9eaaab342b346a78b270913d4fb8cfc3 /Doc/library | |
parent | 8399a177de8bfa860a66e96665488c17199cb9d2 (diff) | |
download | cpython-f59cac4b6458e5c47e24a39ba46fb178c3766577.zip cpython-f59cac4b6458e5c47e24a39ba46fb178c3766577.tar.gz cpython-f59cac4b6458e5c47e24a39ba46fb178c3766577.tar.bz2 |
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136)
(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 ca3404a..083fe53 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 |