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 brett.cannon
Recipients brett.cannon
Date 2020-10-02.15:27:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601652453.05.0.89373160388.issue41911@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/reference/expressions.html#comparisons claims that "Comparisons yield boolean values: True or False." But that's not necessarily true:

```python
>>> class Spam: 
...  def __eq__(self, _): return 42
... 
>>> Spam() == object()
42
```

That really only happens when an expressions is used in a boolean context like an `if` statements guard expression.
History
Date User Action Args
2020-10-02 15:27:33brett.cannonsetrecipients: + brett.cannon
2020-10-02 15:27:33brett.cannonsetmessageid: <1601652453.05.0.89373160388.issue41911@roundup.psfhosted.org>
2020-10-02 15:27:33brett.cannonlinkissue41911 messages
2020-10-02 15:27:32brett.cannoncreate