mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136)
(cherry picked from commit dc980dfbcf
)
This commit is contained in:
parent
8399a177de
commit
f59cac4b64
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue