[issue27260] Missing equality check for super objects

Raymond Hettinger report at bugs.python.org
Tue Jun 7 19:16:59 EDT 2016


Raymond Hettinger added the comment:

Why would you need this?   

Also, would it interfere with super's ability to use the __eq__ method for a parent class?

    class A:
        def __eq__(self, other):
            return True

    class B(A):
        def __eq__(self, other):
            return super(B, self).__eq__(other)

    print(B() == B())

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27260>
_______________________________________


More information about the Python-bugs-list mailing list