Quirk in Python on multiple inheritance! At least I think so?

As Python documentation says: super(): Return a proxy object that delegates method calls to a parent or sibling class of type In that situation super(Cdm,self). Save('Cdm') will call the version of save() which is next in method resolution order. In that case it is the save() method in the Document class because it is a sibling class of Cdm (i.e.It is the second base class of Contacts ) A great practical explanation of super() can be found here: Python’s super() considered super!

As Python documentation says: super(): Return a proxy object that delegates method calls to a parent or sibling class of type. In that situation, super(Cdm,self). Save('Cdm') will call the version of save() which is next in method resolution order.In that case it is the save() method in the Document class because it is a sibling class of Cdm (i.e.

It is the second base class of Contacts). A great practical explanation of super() can be found here: Python’s super() considered super!

Thanks, I understand it clearly. Appreciate the response. – Satyajit Oct 13 at 11:50.

Super(Cdm,self). Save('Cdm') calls the save method of the next class in the mro. This may not be a direct parent of the current class.

For more info about how super works and what it can be used for, you can refer to the documentation and this blog post.

Thanks, appreciate the answer. – Satyajit Oct 13 at 11:51 No problem. Please consider accepting one of the answer to the question.

– madjar Oct 13 at 12:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions