Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Would list.__init__(self) also work when inheriting from list? Commented Sep 24, 2014 at 12:51
  • @Wolf: yes, but that'd preclude multiple inheritance, e.g. using this class as a base together with another class. list might not be the next class in the MRO in such cases. Commented Sep 24, 2014 at 14:29
  • Thanks for pointing on that! The short answer I already found here: Subclassing Built-in Types. MRO I hope I correctly resolved to Method Resolution Order. Commented Sep 24, 2014 at 14:38
  • @Wolf: yes, sorry. MRO stands for Method Resolution Order, the order in which base classes are searched to resolve a requested method. Commented Sep 24, 2014 at 14:39