Sorry, looks like I was a bit hasty. Thanks for the clarification. Ben
On Dec 8, 2021 5:10 AM, Chris Angelico <ros...@gmail.com> wrote: On Wed, Dec 8, 2021 at 9:08 PM Ben Rosenberg <ba...@cornell.edu> wrote: > > To whom it may concern: > > In the article on bitwise operators here: > https://wiki.python.org/moin/BitwiseOperators there is a meaningful typo > under `~x`. It says “This is the same as -x – 1”, where it should be “-x + 1”. > >>> ~5 -6 >>> -5 - 1 -6 >>> x = -5 >>> ~x 4 >>> -x - 1 4 ChrisA
_______________________________________________ pydotorg-www mailing list pydotorg-www@python.org https://mail.python.org/mailman/listinfo/pydotorg-www