Documentation Bug: bitwise-operations-on-integer-types

Feb. 11, 2022
2:41 p.m.
In the link https://docs.python.org/3.11/library/stdtypes.html#bitwise-operations-on-int... In the table, in the line ~x: I suggest to change "the bits of x inverted" by "Add the bit one to bits of x, and invert the most significant bit (negative indicator)" Add note (5) to ~x line Note 5: if "x" is an integer number then "~x" is equivalent to "(x + 1) * -1" and "~(~x)" is equivalent to "x"
1108
Age (days ago)
1108
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fernando Santos