Raymond Hettinger <[email protected]> added the comment:
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.
----------
resolution: -> rejected
stage: -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27260>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com