Skip to content

Commit bbb3358

Browse files
marco-buttuMariatta
authored andcommitted
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137)
(cherry picked from commit dc980df)
1 parent 41af942 commit bbb3358

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,12 @@ Bitwise Operations on Integer Types
423423
pair: bitwise; operations
424424
pair: shifting; operations
425425
pair: masking; operations
426+
operator: |
426427
operator: ^
427428
operator: &
428429
operator: <<
429430
operator: >>
431+
operator: ~
430432

431433
Bitwise operations only make sense for integers. Negative numbers are treated
432434
as their 2's complement value (this assumes a sufficiently large number of bits

0 commit comments

Comments
 (0)