Hi Samuel, Classes already have a `obj.mro()` public method that wraps their private dunder `__mro__`.
Non-classes (instances) don't have a `__mro__`. > Additionally, the class named `object` should have a method named > `__mro__` and any class which inherits from `object` may override > `__mro__` or inherit the default `object.__mro__`. Guido's time machine strikes again. This has existed since Python 2.2 or thereabouts, so more than twenty years ago: >>> object.__mro__ (<class 'object'>,) >>> object.mro() [<class 'object'>] -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ZYGLKVXQKWJX3KHNZGIJRGRXJBJBGIP4/ Code of Conduct: http://python.org/psf/codeofconduct/