Message377817
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. |
|
Date |
User |
Action |
Args |
2020-10-02 15:27:33 | brett.cannon | set | recipients:
+ brett.cannon |
2020-10-02 15:27:33 | brett.cannon | set | messageid: <1601652453.05.0.89373160388.issue41911@roundup.psfhosted.org> |
2020-10-02 15:27:33 | brett.cannon | link | issue41911 messages |
2020-10-02 15:27:32 | brett.cannon | create | |
|