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 eryksun
Recipients eryksun, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters, tomerv
Date 2019-08-13.00:14:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565655286.69.0.490010948172.issue37831@roundup.psfhosted.org>
In-reply-to
Content
<snark>
We could extend bool with shades of grey that close the 2-bit, signed set over the complement: {-2, -1, 0, 1}. For example, the bitwise complement of False could be RealNews (-1, 0x11) and the bitwise complement of True could be FakeNews (-2, 0x10). The bool() value some of built-in objects could be declared as RealNews or FakeNews by decree of the steering committee. For other projects this would have to be subject to opinion, which will probably lead to endless internal debates and flame wars.

In a boolean context, FakeNews would be falsey and RealNews would be truthy. For bitwise operations, we have the following:

~False -> RealNews
~True  -> FakeNews

False    & FakeNews -> False
False    & RealNews -> False
True     & FakeNews -> False
True     & RealNews -> True
RealNews & FakeNews -> FakeNews

False    | FakeNews -> FakeNews
False    | RealNews -> RealNews
True     | FakeNews -> RealNews
True     | RealNews -> RealNews
RealNews | FakeNews -> RealNews

False    ^ FakeNews -> FakeNews
False    ^ RealNews -> RealNews
True     ^ FakeNews -> RealNews
True     ^ RealNews -> FakeNews
RealNews ^ FakeNews -> True

</snark>
History
Date User Action Args
2019-08-13 00:14:46eryksunsetrecipients: + eryksun, tim.peters, rhettinger, mark.dickinson, serhiy.storchaka, tomerv
2019-08-13 00:14:46eryksunsetmessageid: <1565655286.69.0.490010948172.issue37831@roundup.psfhosted.org>
2019-08-13 00:14:46eryksunlinkissue37831 messages
2019-08-13 00:14:46eryksuncreate