inspect.getmro()

inspect.getmro(cls)

Return a tuple of class cls’s base classes, including cls, in method resolution order. No class appears more than once in this tuple. Note that the method resolution order depends on cls’s type. Unless a very peculiar user-defined metatype is in use, cls will be the first element of the tuple.

doc_python
2016-10-07 17:35:01
Comments
Leave a Comment

Please login to continue.