Message350675
Though not beautiful, we already have a way to fulfill this rare use case:
>>> class Foo():
pass
>>> s = super(Foo)
>>> t = super(Foo)
>>> (s.__self_class__, s.__self__) == (t.__self_class__, t.__self__)
>>> True
Though awkward to write, it is completely explicit. That makes it better than giving "s == t" a profoundly different meaning than "s.__eq__(t)". IMO that would be an API mistake, making it tricky to do code review and requiring special knowledge of a rare corner case. |
|
Date |
User |
Action |
Args |
2019-08-28 17:10:12 | rhettinger | set | recipients:
+ rhettinger, JelleZijlstra, ZackerySpytz |
2019-08-28 17:10:12 | rhettinger | set | messageid: <1567012212.93.0.994026856295.issue27260@roundup.psfhosted.org> |
2019-08-28 17:10:12 | rhettinger | link | issue27260 messages |
2019-08-28 17:10:12 | rhettinger | create | |
|