Python’s Multiple Inheritance: Picking which super() to call

That’s not what super() is for. Super basically picks one (or all) of its parents in a specific order. If you only want to call a single parent’s method, do this

class ASDF(ASDF1, ASDF2, ASDF3):
    def __init__(self):
        ASDF2.__init__(self)

Leave a Comment