Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MRO About super()
#2
Python uses C3 superclass linearization since version 2.3. This algorithm is described in many places. You can access the method resolution order directly with the mro() method
>>> D.mro()
[<class '__main__.D'>, <class '__main__.B'>, <class '__main__.C'>, <class '__main__.A'>, <class 'object'>]
Reply


Messages In This Thread
MRO About super() - by catlessness - Jan-11-2020, 11:53 PM
RE: MRO About super() - by Gribouillis - Jan-12-2020, 07:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with super() Hoespilaar 2 288 Apr-10-2024, 10:10 AM
Last Post: Hoespilaar
  super() in class akbarza 1 488 Dec-19-2023, 12:55 PM
Last Post: menator01
  superclass and super() grkiran2011 1 1,756 Jun-20-2020, 04:37 AM
Last Post: deanhystad
  Super with Sublime Text - TypeError: super() takes at least 1 argument (0 given) Shafla 6 7,502 May-04-2019, 08:30 PM
Last Post: Shafla
  Is any super keyword like java rajeev1729 2 3,328 Sep-14-2017, 07:47 PM
Last Post: snippsat
  Multiple Inheritance using super() Sagar 2 7,328 Sep-08-2017, 08:58 AM
Last Post: Sagar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020