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 rhettinger
Recipients eryksun, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters, tomerv
Date 2019-08-14.01:20:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565745604.87.0.620904229627.issue37831@roundup.psfhosted.org>
In-reply-to
Content
Essentially we've got two competing desires:

* Given that & | and ^ are closed under bools,
  it would be nice for ~ to be closed as well.
  NOT isn't a reasonable alternative because
  of its operator precedence.

* Given that bool is a subclass of int,
  its operations should give results equivalent
  to what you would get for ints.

When reopening this, my thought was that the
first desire should win based on practicality-
beats-purity.  In the context of bools, the
current ~ operator violates user expectations
and there isn't a reasonable alternative that
has the correct precedence.

But in the face of opposition to the idea,
am willing to just let it die.  In the scheme
of things, it isn't important.
History
Date User Action Args
2019-08-14 01:20:04rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, eryksun, tomerv
2019-08-14 01:20:04rhettingersetmessageid: <1565745604.87.0.620904229627.issue37831@roundup.psfhosted.org>
2019-08-14 01:20:04rhettingerlinkissue37831 messages
2019-08-14 01:20:04rhettingercreate