Message348452
The __eq__ implementation should return NotImplemented instead of False or raising an exception (like AttributeError or TypeError) when it does not support comparison with the other operand's type. It is so for most of implementations in the stdlib, but there are several exceptions. The proposed patch fixes these cases. |
|
Date |
User |
Action |
Args |
2019-07-25 21:07:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2019-07-25 21:07:46 | serhiy.storchaka | set | messageid: <1564088866.66.0.720895226226.issue37685@roundup.psfhosted.org> |
2019-07-25 21:07:46 | serhiy.storchaka | link | issue37685 messages |
2019-07-25 21:07:46 | serhiy.storchaka | create | |
|