mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137)
(cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user