bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136) · python/cpython@f59cac4 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit f59cac4

marco-buttuMariatta

authored and

committed

(cherry picked from commit dc980df)

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 2 additions & 0 deletions

Original file line number Diff line number Diff line change
@@ -394,10 +394,12 @@ Bitwise Operations on Integer Types
394 394 pair: bitwise; operations
395 395 pair: shifting; operations
396 396 pair: masking; operations
397 + operator: |
397 398 operator: ^
398 399 operator: &
399 400 operator: <<
400 401 operator: >>
402 + operator: ~
401 403
402 404 Bitwise operations only make sense for integers. Negative numbers are treated
403 405 as their 2's complement value (this assumes that there are enough bits so that