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

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit bbb3358

marco-buttuMariatta

authored and

committed

(cherry picked from commit dc980df)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -423,10 +423,12 @@ Bitwise Operations on Integer Types
423 423 pair: bitwise; operations
424 424 pair: shifting; operations
425 425 pair: masking; operations
426 + operator: |
426 427 operator: ^
427 428 operator: &
428 429 operator: <<
429 430 operator: >>
431 + operator: ~
430 432
431 433 Bitwise operations only make sense for integers. Negative numbers are treated
432 434 as their 2's complement value (this assumes a sufficiently large number of bits