Message400457
I went through dunder methods to check if any other operators or builtins work on objects without respective dunder methods:
- del x works even though there is no object.__del__
- operator.length_hint() => 0 when there is no object.__length_hint__
So in addition to __bool__, these dunder methods would have to be special cased. |
|
Date |
User |
Action |
Args |
2021-08-28 03:05:05 | andrei.avk | set | recipients:
+ andrei.avk, rbcollins, cjw296, r.david.murray, michael.foord, pconnell, Darragh Bailey, lisroach, anthonypjshaw, mariocj89, xtreak |
2021-08-28 03:05:05 | andrei.avk | set | messageid: <1630119905.25.0.227176314356.issue25597@roundup.psfhosted.org> |
2021-08-28 03:05:05 | andrei.avk | link | issue25597 messages |
2021-08-28 03:05:05 | andrei.avk | create | |
|