How does Python's super() work with multiple inheritance?

后端 未结 16 2199
孤街浪徒
孤街浪徒 2020-11-21 05:19

I\'m pretty much new in Python object oriented programming and I have trouble understanding the super() function (new style classes) especially when it comes to

16条回答
  •  旧巷少年郎
    2020-11-21 05:49

    This is known as the Diamond Problem, the page has an entry on Python, but in short, Python will call the superclass's methods from left to right.

提交回复
热议问题