This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients JelleZijlstra, ZackerySpytz, rhettinger
Date 2019-08-28.17:10:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567012212.93.0.994026856295.issue27260@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-08-28 17:10:12rhettingersetrecipients: + rhettinger, JelleZijlstra, ZackerySpytz
2019-08-28 17:10:12rhettingersetmessageid: <1567012212.93.0.994026856295.issue27260@roundup.psfhosted.org>
2019-08-28 17:10:12rhettingerlinkissue27260 messages
2019-08-28 17:10:12rhettingercreate