This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients docs@python, ncoghlan
Date 2017-03-03.14:38:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The docs on bitwise operations at include the caveated sentence:

    Negative numbers are treated as their 2’s complement value (this assumes that there are enough bits so that no overflow occurs during the operation).

This sentence isn't correct now that integers are always arbitrary length. The bitwise inversion will never overflow, and is instead calculated as "-(n+1)" rather than literally flipping bits in the representation:
Date User Action Args
2017-03-03 14:38:39ncoghlansetrecipients: + ncoghlan, docs@python
2017-03-03 14:38:39ncoghlansetmessageid: <>
2017-03-03 14:38:39ncoghlanlinkissue29710 messages
2017-03-03 14:38:38ncoghlancreate