Message396840
Seems like an equally reasonable solution would be to make class's with __trunc__ but not __int__ automatically generate a __int__ in terms of __trunc__ (similar to __str__ using __repr__ when the latter is defined but not the former). The inconsistency is in both methods existing, but having the equivalence implemented in int() rather than in the type (thereby making SupportsInt behave unexpectedly, even though it's 100% true that obj.__int__() would fail). |
|
| Date |
User |
Action |
Args |
| 2021-07-02 02:25:52 | josh.r | set | recipients:
+ josh.r, mamrhein |
| 2021-07-02 02:25:52 | josh.r | set | messageid: <1625192752.34.0.14779446758.issue44547@roundup.psfhosted.org> |
| 2021-07-02 02:25:52 | josh.r | link | issue44547 messages |
| 2021-07-02 02:25:52 | josh.r | create | |
|